In .NET, does the entire XML block appear in memory when I validate the XSD?

If I have a large (> 500MB) XML file to validate, does the XmlReader do the whole thing in memory to perform validation?

I looked at XML validation validation against XSD with a C # reference for a validation routine.

thank you mark

0


a source to share


1 answer


No, if you use XmlValidatingReader

(or XmlReader

with appropriate settings) it will not load the whole XML file. The method described in the question uses a class XmlDocument

that executes loads the entire file. the accepted answer doesn't download the whole file, so you should be able to use it.



+1


a source







All Articles