Extensions::Validate Method
.NET Framework (current version)
Validates that an XDocument, an XElement, or an XAttribute conforms to an XSD in an XmlSchemaSet.
Assembly: System.Xml.Linq (in System.Xml.Linq.dll)
These methods use an underlying XmlReader to validate the XML tree against an XSD.
Validation error and warning messages are handled using the ValidationEventHandler delegate. If no event handler is provided to these methods, validation errors are exposed as an XmlSchemaValidationException. Validation warnings do not cause an XmlSchemaValidationException to be thrown.
Some of these extension methods optionally allow population of the post-schema-validation infoset (PSVI).
Show:

