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

Comments

ryo’s picture

Same for me.

CompShack’s picture

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!

darren oh’s picture

Status: Active » Fixed

Fixed in CVS commit 116845.

CompShack’s picture

I take it this has not been committed to dev, right?

Thanks for the quick response.

darren oh’s picture

Dev is updated daily.

ariflukito’s picture

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";
darren oh’s picture

Thanks, ariflukito. Fixed in CVS commit 116895.

CompShack’s picture

Just confirming that I have updated my site and the google warning is gone. Thanks for the quick fix.

feras80’s picture

Version: 5.x-1.5 » 7.x-2.x-dev
Category: bug » support
Status: Fixed » Closed (won't fix)

Hello
I made all changers, but still getting the same error. Do i have to re-install the module?
Thank you

CompShack’s picture

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.

darren oh’s picture

Version: 7.x-2.x-dev » 5.x-1.5
Category: support » bug
Status: Closed (won't fix) » Fixed
rmiddle’s picture

Any Plains to back port this fix to the 6 branch? I am getting the same warning using the 6 devel version.

Thanks
Robert

Frieder’s picture

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.

Frieder’s picture

Version: 5.x-1.5 » 7.x-2.x-dev
Status: Fixed » Active
darren oh’s picture

Status: Active » Patch (to be ported)
darren oh’s picture

Status: Patch (to be ported) » Fixed

Fixed in CVS commit 117437.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

pavlos’s picture

Version: 5.x-1.x-dev » 7.x-2.x-dev
Status: Fixed » Closed (fixed)

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:

XML Parsing Error: unclosed token
Location: http://www.w3.org/2001/03/webdata/xsv?docAddrs=http%3A%2F%2Fwww.premiers...
Line Number 5491, Column 3: namespace="http://www.google.com/schemas/sitemap-news/0.9"

--^a[rel~="nofollow"] { border: thin dashed firebrick ! important; background-color: rgb(255, 200, 200) ! important; }a[rel~="nofollow"] { border: thin dashed firebrick ! important; background-color: rgb(255, 200, 200) ! important; }

pavlos’s picture

Version: 7.x-2.x-dev » 5.x-1.x-dev
Status: Closed (fixed) » Active
darren oh’s picture

Status: Active » Fixed

Fixed in CVS commit 120181.

pavlos’s picture

Version: 7.x-2.x-dev » 5.x-2.x-dev
Status: Closed (fixed) » Fixed

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.

pavlos’s picture

Status: Fixed » Active
darren oh’s picture

Status: Active » Fixed

That code doesn't come from the XML Sitemap module.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

zonaidrahim’s picture

Invalid XML attribute
The XML attribute of this tag was not recognized. Please fix it and resubmit.I need Help. Tag Category and attribute Domain.
Z rahim
http://www.freemoneymakingideaonline.blogspot.com

proindustries’s picture

Version: 5.x-2.x-dev » 6.x-2.x-dev
Component: xmlsitemap » xmlsitemap.module
Status: Closed (fixed) » Active

Guys - There's still XML attirubite issues, as far as Google is concerned. I'm currently using the 6.x-2.x-dev snapshot from about a week ago.

Invalid XML attribute
The XML attribute of this tag was not recognized. Please fix it and resubmit. Help Help
Tag: urlset
Attribute: url
Problem detected on: May 4, 2009

generated XML follows:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="http://examplesite.com/sitemap.xsl" ?>
<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">
<url><loc>http://examplesite.com/</loc><priority>1.0</priority></url>
<url><loc>http://examplesite.com/mobilebroadband</loc></url>
<url><loc>http://examplesite.com/mobilebroadcast</loc></url>
<url><loc>http://examplesite.com/news</loc></url>
<url><loc>http://examplesite.com/customers</loc></url>
</urlset>
dave reid’s picture

Status: Active » Fixed

@jlkinsel: Try the latest snapshot again. The bug has been fixed and I've confirmed it works just fine with Google Webmaster Tools now.

proindustries’s picture

@Dave - works spot on. Thanks for the tip!

dave reid’s picture

Yeah, it's funny how the example for "how to validate your sitemap" doesn't pass google's validation. :)
See http://sitemaps.org/protocol.php#validating

Status: Fixed » Closed (fixed)

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

RAFA3L’s picture

I'm getting a weird validations errors.

I did use all the time a commercial desktop application to generate the sitemap and I like the idea to run this with the cron automatically.

The XML Sitemap module work and generate the xml file to mydomain.com/sitemap.xml, but Google don't parse the XML correctly. This say:

Parsing error
We were unable to read your Sitemap. It may contain an entry we are unable to recognize. Please validate your Sitemap before resubmitting.

Then, I validate the xml using

http://www.validome.org/xml/validate/

And report this errors:

Line File name: http://mydomain.com/sitemap.xml
2 Column: 62
Error: Can not find declaration of element 'urlset'.
Error Position:

Line File name: http://mydomain.com/sitemap.xml
33 Column: 103
Error: Element type "lastmod" must be terminated by the matching end-tag "".
Error Position:
...m/cat/blahblahr2009-06-21T14:47:10+00:00

But if I copy and paste the xml code from the source of the browser to the validator field only show the first error in the line 2.

I'm using 6.x.2.x-dev

RAFA3L’s picture

Another thing...

Playing with the module I did copy the file from sites/default/files/xmlsitemap/xmlsitemap-es-0.xml to the root and work fine.

I submit the sitemap directly from the Google Webmaster Tools site and don't show any error. The green checkmark appear under the status label.

But if I delete this httpdocs/sitemap.xml this will be generated automatically by the module when call mydomain.com/sitemap.xml, but this produce the errors mentionated in my previous post

dave reid’s picture

Without being able to view the source of your XML sitemap, it's hard for me to tell what is going wrong. If you'd like you can send me an e-mail through my user account to the link to it. Furthermore, I strongly recommend not copying the generated file and putting it in your site's root. You lose the ability of the module to keep up with changes and generate the sitemap when it is needed.