BiscoWeb / sitemapgen4j

Automatically exported from code.google.com/p/sitemapgen4j
0 stars 0 forks source link

Missing xmlns:xsi and xsi:schemaLocation namespaces #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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" +
                    "            
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\"");

Original issue reported on code.google.com by ban...@gmail.com on 15 Mar 2010 at 4:27

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

Original comment by m.k...@irregular.at on 20 Mar 2015 at 10:05