Validating XML tag by tag

Posted by Greatful on Stack Overflow See other posts from Stack Overflow or by Greatful
Published on 2009-01-24T17:23:45Z Indexed on 2010/05/16 15:10 UTC
Read the original article Hit count: 269

Filed under:
|
|
|
|

Hi All

I'm having some issues validating some XML against a Schema, using .net and C#.

I am using XmlReaderSettings with the ValidationEventHandler.

However, this seems to stop catching errors after it has encountered the first error at a particular level within the XML file, instead of checking the next tag at the same level, so basically it does not check each and every tag within the XML file instead skipping a level when it has found an error.

I was hoping to get some advice from somebody who has successfully accomplished this type of validation.

Thanks very much

© Stack Overflow or respective owner

Related posts about Xml

Related posts about schema