Project

General

Profile

« Previous | Next » 

Revision 7735

Added by Matt Jones over 11 years ago

Updated Sitemap generation to use latest version of the sitemap protocol schemas.

View differences:

src/edu/ucsb/nceas/metacat/Sitemap.java
192 192
     */
193 193
    private void writeSitemapHeader(Writer sitemap) throws IOException {
194 194
        sitemap.write(PROLOG);
195
        String header = "<urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\">\n";
195
        String header = "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\n" +
196
                "xmlns:sm=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\n" +
197
                "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
198
                "xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">";
199
        
196 200
        sitemap.write(header);
197 201
        sitemap.flush();
198 202
    }

Also available in: Unified diff