Reading the Content
The actual content of an XmlDocument is represented by the Value property of each XmlNode object. Well, not exactly each XmlNode. Remember earlier in this chapter we basically said that everything in an XmlDocument is an XmlNode? This includes XmlElements and XmlAttributes among others. Depending on the actual type of each XmlNode, the Value property might contain a value, or it might not at all. It depends on the type of the node. Table 33.3 describes the value stored in the Value property of an XmlNode depending on the actual NodeType of the node.
Class | Content of Value Property |
---|---|
XmlAttribute | The value of the attribute. |
XmlCDataSection | The content of the CDATA section. |
XmlComment ... |
Get Visual Basic® .NET by Example 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.