Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Mon, 29 Sep 2008 13:09:51 -0700 (PDT),    group: microsoft.public.xml        back       


xml validation   
Hi
I've got a xml file and xsd with only one namespace -
xmlns:media="http://search.yahoo.com/mrss". When I'm getting the rss
feed for example from Youtube there're also others namespaces such as
xmlns:atom or xmlns:yt. When I'm trying to validate this Xml with my
xsd the validationeventhandler show me only the first error. But what
when we got xml file like:

<channel>
<atom:id> Ident </atom:id>
<atom:name> Name </atom:name>
....
</channel>

The Validator show me the atom:id is not in my xsd file but there's
nothing about next wrong items such as atom:name.
What should I do to change this to show me all the errors??

Thanks
kplazinski
date: Mon, 29 Sep 2008 13:09:51 -0700 (PDT)   author:   Konrad

Re: xml validation   
Two comments from me...

A.) Apparently, the only trustworthy XML validator is the W3C Feed Validator 
[1] Its been discovered that feedvalidator.org vandalizes namespaces 
imposing political statements marking well-formed and valid XML with 
namespaces look like errors which can cause shallow thinkers to be misled to 
believe there is something wrong with the feed and then likely stop using 
it.

B.) FYI, the Yahoo documentation has had a typo for some time that has 
apparently recently been updated. There is supposed to be a slash at the end 
of the MediaRSS namespace as shown...

xmlns:media="http://search.yahoo.com/mrss/

I have no other comments regarding the validation of schema. Perhaps you are 
using the subversive XML vandalator I mentioned and advise not to use?

[1] http://validator.w3.org/feed/






"Konrad"  wrote in message 
news:a2d980aa-8d50-4ea5-904f-225472b24b79@b1g2000hsg.googlegroups.com...
> Hi
> I've got a xml file and xsd with only one namespace -
> xmlns:media="http://search.yahoo.com/mrss". When I'm getting the rss
> feed for example from Youtube there're also others namespaces such as
> xmlns:atom or xmlns:yt. When I'm trying to validate this Xml with my
> xsd the validationeventhandler show me only the first error. But what
> when we got xml file like:
>
> <channel>
> <atom:id> Ident </atom:id>
> <atom:name> Name </atom:name>
> ....
> </channel>
>
> The Validator show me the atom:id is not in my xsd file but there's
> nothing about next wrong items such as atom:name.
> What should I do to change this to show me all the errors??
>
> Thanks
> kplazinski
date: Tue, 30 Sep 2008 10:18:04 -0500   author:   Hillbilly

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us