C#: Validate an XML string against Schemas. .NET 2.0
C# VB.NET 2.0
I have XML string object being sent to me. I have the location of the schemas (5 of them) that I need to validate this XML against.
Most of the examples I see are .net 3.5, but not many on 2.0.
The XML String does NOT Declare what schemas to use, it only has the n开发者_运维技巧amespaces on a good handful of elements.
Thanks.
Have a look at XmlSchemaSet.
精彩评论