Validation of xml with xmlvalidatingreader example
For details on how this method handles specific node types, see the Read String reference page.
You can browse through the source code online, download the reference for offline viewing, and step through the sources (including patches and updates) during debugging; see instructions.
provides forward-only, read-only access to XML data in adocument or stream.
After you get a node, you get the value of attributes or child nodes. To add a node, use the Create Element method or the Create Node method.
To add a data node such as a book, use the Create Element method.
If the node is not a content node, the reader skips ahead to the next content node or end of file.
It skips over nodes of the following type: Processing Instruction, Document Type, Comment, Whitespace, or Significant Whitespace.
Read reference page for an example of navigating through a text stream one node at a time and displaying the type of each node.
The following sections describe how you can read specific types of data, such as elements, attributes, and typed data.
Create an event handler that executes when code attempts to modify your XML file in ways that violate the rules of the schema.