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&#039;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

allisterbeharry’s picture

Assigned: Unassigned » allisterbeharry

You'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.

allisterbeharry’s picture

allisterbeharry’s picture

Status: Active » Fixed
liquidcms’s picture

lol.. surprised you could figure out what i was talking about as i see now my initial post was cut off.

thanks for the fix.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.