I have a web service that receives XML as its input. When this XML is received, I want to compare it to 2 XSD files to see which one it matches, if at all. These 2 XSD files are almost identical except for the targetnamespace.
What is the best way for me to check which XSD file the XML matches? XDocument.Validate() doesn't seem to do the job? Can anyone please offer any suggestions?
manfingram
0 Points
4 Posts
Validating XML with an XSD file
Apr 24, 2012 08:40 PM|LINK
Hi all,
I have a web service that receives XML as its input. When this XML is received, I want to compare it to 2 XSD files to see which one it matches, if at all. These 2 XSD files are almost identical except for the targetnamespace.
What is the best way for me to check which XSD file the XML matches? XDocument.Validate() doesn't seem to do the job? Can anyone please offer any suggestions?
TimoYang
Contributor
3732 Points
1275 Posts
Re: Validating XML with an XSD file
Apr 26, 2012 01:53 AM|LINK
Show us your two things of xml and xsd file,And tell us what you want to gain…………