Skip to content

Commit

Permalink
Merge pull request #50 from norbie-nagy/standard-namespace-prefix
Browse files Browse the repository at this point in the history
self.writeFile update standard namespace prefix
  • Loading branch information
boutell authored Apr 8, 2022
2 parents bf966b1 + 886fde4 commit 08a5bbb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,14 @@ module.exports = {
};

self.writeXmlMap = function(file, map) {
self.writeFile(file,
'<?xml version="1.0" encoding="UTF-8"?>\n' +
'<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"' +
' xmlns:xhtml="http://www.w3.org/1999/xhtml">\n' +
self.writeFile( file,
'<urlset 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 ' +
'http://www.w3.org/TR/xhtml11/xhtml11_schema.html ' +
'http://www.w3.org/2002/08/xhtml/xhtml1-strict.xsd" ' +
'xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" ' +
'xmlns:xhtml="http://www.w3.org/TR/xhtml11/xhtml11_schema.html">\n' +
map +
'</urlset>\n'
);
Expand Down

0 comments on commit 08a5bbb

Please sign in to comment.