473,320 Members | 2,177 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Problem with ValidationEventHandler

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:idIdent </atom:id>
<atom:nameName </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
Sep 29 '08 #1
1 2035
On Sep 29, 6:55*pm, Konrad <kplazin...@gmail.comwrote:
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:idIdent </atom:id>
<atom:nameName </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??
You should have a look at XmlSchemaValidator class. It allows you to
validate XML node by node, and to skip over nodes when you want (e.g.
when the node itself didn't validate).
Oct 1 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AlexS | last post by:
Hello, I have error when reading schema using XmlSchema. Read and then .Compile: System.Xml.Schema.XmlSchemaException: May not be nominated as the {substitution group affiliation} of any...
7
by: Microsoft News | last post by:
Hi all. Does id() xpath function work in System.XML? I have built dtd, schema, xdr for a simple xml which includes attributes definded as ID and IDREFS. Validation is occurring properly for all...
0
by: Daniel Haag | last post by:
I have got an XML file, that aderes to a XDR-Schema which references elements and attributes in two other XDR-Schemas. I want to validate this XML file before I create a DOM tree in C#. This works...
0
by: Nick Finch | last post by:
Hi, I wonder if anyone else has come across this. The code below is very simple however I cannot get the ValidationHandler to be raised. I am testing with xml that I know will not validate...
2
by: Raghu R | last post by:
From: "R. Raghuraman" <raghuraman@infosys.com> Subject: Problem with XMLValidatingReader? Date: 01 April 2004 11:46 Hi, I have a large xml file to process (~ 70 mb). I am trying to use...
0
by: Rajesh Jain | last post by:
I Have 2 separate schemas. --------------Schema 1 is defined as below----------- <xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema"...
2
by: tomek.romanowski | last post by:
Hi ! I have problem with validating of the document with multiple namespaces. The odd thing is, that my data work O'K when I test it under XMLSpy but it doesn't work with my C# code. My first...
0
by: Matt | last post by:
I have a problem when I select node elements from an xml file and validata each node againts the schema. I use XmlValidatingReader and it complains about elements not being declared. I have...
0
by: tbrierly | last post by:
Hello, I'm looking for help trying to get the contents of the XML document while in the ValidationEventHandler for XmlReaderSettings. Here is what I mean: We need to be able to validate the...
3
by: Konrad | last post by:
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.