In Brief

  • The XmlDocument builds a tree data structure of the XML document it parses.

  • The XmlDocument allows navigating the nodes in all directions: parent to child, child to parent, and sibling to sibling.

  • The XmlDocument provides a rich API for accessing the data in each XML node.

  • Searching the XML document is difficult since the .NET Compact Framework does not provide XPath support.

  • Since XPath is not supported, care must taken when designing your XML data.

  • The XmlDocument provides methods for creating every type of XML node.

  • After manipulating your XML data, the contained XML data can be persisted using the Save method.

Get Microsoft® .NET Compact Framework Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.