How to get XmlSchema object from large string that contains all XSD content?
The Read method is static. So better use
XmlSchema schema = XmlSchema.Read(
schemaReader, (sender, args) =>
{
// HANDLE VALIDATION FAILED
});
You can use a StringReader:
string content = ".......";
XmlSchema schema = XmlSchema.Read(new StringReader(content), ValidateSchema);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With