Export to GitHub

sitemapgen4j - issue #5

Missing xmlns:xsi and xsi:schemaLocation namespaces


Posted on Mar 15, 2010 by Massive Ox

Please change in: com.redfin.sitemapgenerator.SitemapGenerator

in method: private void writeSiteMap(OutputStreamWriter out) throws IOException

out.write("<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" ");

TO:

out.write("<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" " + " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema- instance\"" + "
xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9&quot; + "
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\"");

Comment #1

Posted on Mar 20, 2015 by Helpful Bird

Could you please open a pull request with the fix at https://github.com/dfabulich/sitemapgen4j ?

Status: New

Labels:
Type-Defect Priority-Medium