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
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

ryo - May 17, 2008 - 04:53

Same for me.

#2

CompShack - May 17, 2008 - 20:37

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

Darren Oh - May 18, 2008 - 17:03
Status:active» fixed

Fixed in CVS commit 116845.

#4

CompShack - May 18, 2008 - 18:52

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

Thanks for the quick response.

#5

Darren Oh - May 18, 2008 - 18:56

Dev is updated daily.

#6

ariflukito - May 19, 2008 - 00:09

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

Darren Oh - May 19, 2008 - 02:17

Thanks, ariflukito. Fixed in CVS commit 116895.

#8

CompShack - May 20, 2008 - 00:52

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

#9

feras80 - May 22, 2008 - 17:38
Version:5.x-1.5» 6.x-0.x-dev
Category:bug report» support request
Status:fixed» won't fix

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

#10

CompShack - May 22, 2008 - 18:58

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

Darren Oh - May 22, 2008 - 19:49
Version:6.x-0.x-dev» 5.x-1.5
Category:support request» bug report
Status:won't fix» fixed

#12

rmiddle - May 23, 2008 - 03:10

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

Frieder - May 23, 2008 - 08:37

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

Frieder - May 23, 2008 - 08:42
Version:5.x-1.5» 6.x-0.x-dev
Status:fixed» active

#15

Darren Oh - May 23, 2008 - 12:16
Status:active» patch (to be ported)

#16

Darren Oh - May 23, 2008 - 12:22
Status:patch (to be ported)» fixed

Fixed in CVS commit 117437.

#17

Anonymous (not verified) - June 6, 2008 - 12:25
Status:fixed» closed

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

#18

pavlos - June 8, 2008 - 18:54

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:

#19

pavlos - June 8, 2008 - 13:44
Version:6.x-0.x-dev» 5.x-1.x-dev
Status:closed» active

#20

Darren Oh - June 8, 2008 - 15:56
Status:active» fixed

Fixed in CVS commit 120181.

#21

pavlos - June 8, 2008 - 19:23
Version:5.x-1.x-dev» 5.x-2.x-dev

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

pavlos - June 8, 2008 - 20:12
Status:fixed» active

#23

Darren Oh - June 9, 2008 - 01:12
Status:active» fixed

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

#24

Anonymous (not verified) - June 23, 2008 - 01:22
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.