Validate an XmlDocument using an XSD String in C#?

g3oniTz

New Member
I have an \[code\]XmlDocument\[/code\] in C# that I need to validate against an Xml Schema. I've seen a lot of articles on how to do this using \[code\]XmlDocument.Schemas.Add(namspace, xsdfilename)\[/code\], however my XSD is not saved on the disk, it's in memory (loaded in from a database). Can anyone give me pointers on how to validate an \[code\]XmlDocument\[/code\] with a XSD string?
 
Back
Top