After creating an instance of Xml Text Reader, you call Read method to start reading the document.
After read method is called, you can read all information and data stored in a document.
This article explained about the XML document, XSD schema, and how to validate XML document against XSD schema using Microsoft .
Then, you will see how to read and write XML documents. It also contains properties to get a parent or child, name, last child, node type and more. XPath Namespce contains XPath related classes to use XPath specifications.
Notice that you have to have the namespace in the root element of the XML file.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.
List 2 code sample reads an XML document, finds a node type and writes information at the end with how many node types a document has.
Highly Recommended I have published a free book on XML programming using C#. Free e-book: Programming XML with C# Learn more XML Programming Still hungry for more XML programming with C# and . Here is a dedicated section with hundreds of articles and code samples on XML programming using C# and . XML Programming in C# About Sample Example 2 In this sample example, I read an XML file using Xml Text Reader and call Read method to read its node one by one until end of the file.
If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.