[SOLVED] How to get XmlSchema object from XSD which is string in C#?

Issue

How to get XmlSchema object from large string that contains all XSD content?

Solution

You can use a StringReader:

string content = ".......";
XmlSchema schema = XmlSchema.Read(new StringReader(content), ValidateSchema);

Answered By – Frédéric Hamidi

Answer Checked By – Gilberto Lyons (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *