XmlValidator

This sample demonstrates:

  1. XML serialization of CLR type hierarchy via DataContractSerializer
  2. Generation of XSD schema for CLR type hierarchy via XsdDataContractExporter
  3. XML document validation with XSD schema via XDocument.Validate extension method defined in System.Xml.Schema.Extensions class