Validating xdocument Live free lonely wifes looking for affair free chats
Take a look at this documentation on MSDN - it has sample code as well: Extensions.
I load the xsd with these line of code: There is a Validate extension method that might meet your needs.
This is similar to this question C# Get schema information when validating xml However, I am working with an XDocument for LINQ purposes.
I am reading/parsing a set of CSV files and converting to XML, then validating the XML against an XSD schema.
The XML standard is a flexible way to create information formats and electronically share structured data via the public Internet, as well as via corporate networks. You will have to create tags according to your needs. The XML Schema language is also referred to as XML Schema Definition (XSD).
An XML Schema describes the structure of an XML document.
XSD is a schema language; you use it to define the possible structure and contents of an XML format.
Sometimes, it needs to be validated at the business level.
After reading this article, we can learn the below points.