Invalid XML attribute
ariflukito - May 17, 2008 - 02:37
| Project: | XML Sitemap |
| Version: | 5.x-2.x-dev |
| Component: | xmlsitemap |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
This doesn't seem pass validator
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9"
url="http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">from validator:
"xsi:schemaLocation must be a list with an even number of members"
from Google warning:
Invalid XML attribute
The XML attribute of this tag was not recognized
seem like url attribute is not valid

#1
Same for me.
#2
I'm getting a google warrning after upgrading to 5-1.5. The warrning says:
Invalid XML attribute at line 3
The XML attribute of this tag was not recognized. Please fix it and resubmit.
Tag: urlset
Attribute: url
Anyone can help? Have no idea where to go from here. Thanks!
#3
Fixed in CVS commit 116845.
#4
I take it this has not been committed to dev, right?
Thanks for the quick response.
#5
Dev is updated daily.
#6
thx Darren however there is an extra closing bracket on sitemapindex on first line
$output .= '<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">'."\n";$output .= ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'."\n";
$output .= ' xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9'."\n";
$output .= ' http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd">'."\n";
#7
Thanks, ariflukito. Fixed in CVS commit 116895.
#8
Just confirming that I have updated my site and the google warning is gone. Thanks for the quick fix.
#9
Hello
I made all changers, but still getting the same error. Do i have to re-install the module?
Thank you
#10
Inactivate and re-activate the module and run the update script. To run it go to www.yoursite.com/update.php
You will need to resubmit your sitemap to google as well.
#11
#12
Any Plains to back port this fix to the 6 branch? I am getting the same warning using the 6 devel version.
Thanks
Robert
#13
I dont know if we should fill a new bug report for 6.x dev version or just reopen this one for the new version. I will changed the options.
#14
#15
#16
Fixed in CVS commit 117437.
#17
Automatically closed -- issue fixed for two weeks with no activity.
#18
I am still getting this error. Wonder if anything is wrong with my theme...
I upgraded from 5.1.5 to 5.1.6 getting the same error. Then I just instaled the .dev version after uninstalling and re-installing and still the same error.
For anyone wanting to have a look, visit: http://www.premiershiplatest.com/news-sitemap.xml
The weird thing is that when I run update.php I didn't see an available upgrade for any of the xml sitemap modules...
Getting the following error via W3C's xml validator:
#19
#20
Fixed in CVS commit 120181.
#21
Thanks Darren Oh
Installed 5.2.dev and still the same error using the validator. This release's date is 8 june so I guess your changes are committed to that release.
Basically if you visit the feed, at the very last line there is this code appended only when viewing it by the browser and doesn't get included in the source code of the file.
a[rel~="nofollow"] { border: thin dashed firebrick ! important; background-color: rgb(255, 200, 200) ! important; }
My XML/XSL knowledge is very limited so I can't work out why it shows there.
#22
#23
That code doesn't come from the XML Sitemap module.
#24
Automatically closed -- issue fixed for two weeks with no activity.