Scroll To Top
Reader Level:

POC for DOM XML Parser

By Kiran Khambete on Jul 21, 2005
The classes found in System.Xml namespace provide functionality to parse and navigate through XML documents. The attached source code shows how to use this functionality in C#.

The attached source code shows how to build an XML Parser using System.Xml classes. Some of the functionality this attached source code hows are -

  1. Building XML object

  2. Loading XML documents from string and/or XML files

  3. Selecting a document node using SelectSingleNode

  4. Selecting and retrieving a document nodes using ChildNode

  5. Selecting and retrieving parent node of a selected node using ParentNode.

  6. Navigating through a node siblings

Download and run the attached source code for more details.