O'Reilly logo

Visual Basic® .NET by Example by Bob Donald, Gabriel Oancea

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Traversing XML

After an XmlDocument is loaded, it is represented by an in-memory hierarchical structure of XmlNode objects. An XmlNode is an abstract class in the .NET Framework that is the base class for many different node types. The XmlNode class contains a read-only property named NodeType that contains a value in the enumeration XmlNodeType that represents the node's actual type. Table 33.1 lists the values in the XmlNodeType enumeration.

Table 33.1. XmlNodeType Enumeration
Value Description
Attribute An attribute.
CDATA A CDATA section.
Comment A comment.
Document A root document node.
DocumentFragment A node or subtree associated with this document that is part of another document.
DocumentType The document type declaration represented ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required