Xmlschemaset not validating

Rated 3.88/5 based on 858 customer reviews

You can poke around in the document if you like, while the validation happens, but when I'm just validating I do a while(reader. I load the most-leaf node to load whole spec: I wanted an assembly that was self-contained and would hold all 64 of these XSD files internally as resources, and I didn't want to put them in a temp directory.

On this project, it's a (light) requirement that we use the specification schemas unchanged. So, I pass in a custom resolver that will find the correct schema given the URI (the value in the schema Location attribute) and return it, in this example, as a stream.Validation is pretty straight forward, you take any Xml Text Reader and wrap and run it through the Xml Validating Reader.The Validation Event Handler will call you back if there's any trouble. XSD files - 64 of them - that represent a single specification. It can validate an XML document as it reads and parses the document.In this example, we demonstrate how to activate such validation.

Leave a Reply