Re: will sitemap.xml be rejected/invalid if xml elements contain extra attributes?
Well, you would create your own namespace for the extra stuff that
isn't defined in the google sitemap namespace. Like this I believe.
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:goofymoo="http://goofymoo.com/"
>
<url>
<loc>http://www.hillcountrymassage.com/</loc>
<goofymoo:type>homey</goofymoo:type>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://www.hillcountrymassage.com/PriceList.htm</loc>
<goofymoo:type>subby</goofymoo:type>
<changefreq>weekly</changefreq>
</url>
</urlset>
or perhaps
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:goofymoo="http://goofymoo.com/"
>
<url>
<loc goofymoo:type="homey">http://www.hillcountrymassage.com/</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc
goofymoo:type="subby">http://www.hillcountrymassage.com/PriceList.htm</loc>
<changefreq>weekly</changefreq>
</url>
</urlset>
If you wanted it to properly validate you'd have to specify a DTD. But
it would 'prolly fly without the DTD.
Waitman
0 Comments:
Yorum Gönder
<< Home