not sure if i am doing this correctly but i am trying to create a Google News XML feed which has a format like:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:n="http://www.google.com/schemas/sitemap-news/0.9">
<url>
<loc>http://www.consumersearch.com/blog/picking-the-right-green-laundry-detergent</loc>
<n:news>
<n:publication>
<n:name>ConsumerSearch Productopia</n:name>
<n:language>en</n:language>
</n:publication>
<n:genres>Blog</n:genres>
<n:publication_date>2010-04-05T15:31:28-05:00</n:publication_date>
<n:title>Picking the right "green" laundry detergent</n:title>
<n:keywords>[Channel], [Product Type (separate by commas if multiple)]</n:keywords>
</n:news>
</url>
<url>
<loc>http://www.consumersearch.com/blog/2011-hyundai-equus-sedan-ditches-paper-owners-manual-gets-media-tablet</loc>
<n:news>
<n:publication>
<n:name>ConsumerSearch Productopia</n:name>
<n:language>en</n:language>
</n:publication>
<n:genres>Blog</n:genres>
<n:publication_date>2010-04-02T03:31:28-05:00</n:publication_date>
<n:title>2011 Hyundai Equus sedan ditches paper owner's manual, gets media tablet</n:title>
<n:keywords>[Channel], [Product Type (separate by commas if multiple)]</n:keywords>
</n:news>
</url>
</urlset>
i believe in this case the root element name would be "urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:n="http://www.google.com/schemas/sitemap-news/0.9""
but then it should be clsoed with simply not
Comments
Comment #1
allisterbeharry commentedYou're right, the end tag of an XML element should not include any namespace or other attributes specified on the start tag. I've committed the fix to CVS and it will be included in the next release. Thanks for finding this bug.
Comment #2
allisterbeharry commentedFixed in beta2: http://drupal.org/node/855894
Comment #3
allisterbeharry commentedComment #4
liquidcms commentedlol.. surprised you could figure out what i was talking about as i see now my initial post was cut off.
thanks for the fix.