Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Process XML Data In-Memory

The Microsoft .NET Framework includes three models for processing XML data: the XmlDocument class, the XPathDocument class, and LINQ to XML.

The XmlDocument class implements the W3C document object model (DOM) level 1 core and the core DOM level 2 recommendations. The DOM is an in-memory (cache) tree representation of an XML document. With the XmlDocument and its related classes, you can construct XML documents, load and access data, modify data, and save changes.

The XPathDocument class is a read-only, in-memory data store that is based on the XPath data model. The XPathNavigator class offers several editing options and navigation capabilities using a cursor model over XML documents contained in the read-only XPathDocument class as well as the XmlDocument class.

LINQ to XML is the new model in the .NET Framework version 3.5 for processing XML data. It is an in-memory model that leverages Language-Integrated Query (LINQ). LINQ extends the language syntax of C# and Visual Basic to provide new query capabilities.

Process XML Data Using the DOM Model

Discusses using the XmlDocument, and its related classes to process XML data.

Process XML Data Using the XPath Data Model

Discusses using the XPathDocument, XmlDocument, and XPathNavigator classes to process XML data.

Process XML Data Using LINQ to XML

Provides a brief overview of LINQ to XML and provides links to the LINQ to XML documentation.

© 2015 Microsoft