Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to read through the whole xml and get all exception(s) by comparing with a schema file in asp.net with c#?

I am able to validate the Xml only one by one . Followed below link:
http://www.roelvanlisdonk.nl/?p=2644[^]
Posted
Comments
Sinisa Hajnal 7-Oct-15 5:00am    
You've asked this questions at least three times in variations.

Since you have your reference XML...and XSD schema is not acceptable: go through your reference XML and build a collection of required nodes. Then go through your validating XML and check if its nodes are found in the collection you built earlier.
Alex 11 7-Oct-15 5:53am    
XSD Schema is acceptable. But the issue is that if the Xml is missing multiple child elements the validation message is shown one after the other. As mentioned i want to get all the missing elements completely .

1 solution

 
Share this answer
 
Comments
[no name] 7-Oct-15 6:48am    
Thank you for this, just testet. A great example, at least for me so a 5 for you. Bruno
Maciej Los 7-Oct-15 6:59am    
Thank you, Bruno.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900