How to validate XML file against XSD without loading all XML document into memory?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I need to validate an xml document. Its size is very large. I have defined XSD schema to validate this xml document.
Currently I am using ReadXML method to load data into XSD. Since data is very large, a lot of memory is getting consumed. Also CPU time.
How can i validate XML file against XSD without loading all XML document into memory?
Are there any specialized classes for XSD validation of a document that will not load and deserialize the whole XML (more working like a stream)?
Thanks in advance

View the full article
 
Back
Top