Validating xml without namespace
For more information about modifying values using the Set Typed Value method, see the Modify XML Data using XPath Navigator topic.
The Xml Reader Settings object passed as a parameter has a Validation Type property set to and an XML Schema for the XML document contained in the Xml Document object added to its Schemas property. The validating Xml Reader object is then used to create the Xml Document object. The following example validates the file as it is loaded into the Xml Document object by creating the Xml Document object using a validating Xml Reader object. For more information about read-only and editable XPath Navigator objects, see the Reading XML Data using XPath Document and Xml Document topic. The XPath Document object validates the XML document as it is loaded, but because you cannot edit the XML data in the XPath Document object, you cannot revalidate the XML document.