XML schema validation C#

mikha
mikha used Ask the Experts™
on
I was given an XSD schema file from a third party client.

I want to validate a XML, that I create, against the XML Schema that was provided to me before posting to a third party web service.

how should i go about this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Retired
Distinguished Expert 2017
Commented:
Here is two examples on the web page, How to: Validate Using XSD (LINQ to XML) (C#), it shows how to use the XDocument Validate method to do what you need.
Fernando SotoRetired
Distinguished Expert 2017

Commented:
Solution given

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial