Accessing Other XmlNodes

Thus far we have examined elements, attributes, and document nodes, but the .NET Compact Framework's XML DOM architecture also provides XmlNode implementations for each XML node type defined in the System.Xml.XmlNodeType enumeration. The two most important pieces of information, name and value, have different meanings in the context of different nodes. Table 11.1 lists each System.Xml.XmlNodeType and the values of their corresponding Name and Value properties.

Table 11.1. XmlNodeTypes and Their Names and Values
NODETYPENAMEVALUE
AttributeAttribute NameAttribute Value
CDATAN/ACDATA's content
Comment#commentText between <!-- and -->
Document#documentN/A
DocumentFragment#document-fragmentN/A
DocumentTypeN/AN/A
ElementFully qualified element nameN/A
EndElementFully qualified element nameN/A
EndEntityN/AN/A
EntityN/AN/A
EntityReferenceN/AN/A
NoneN/AN/A
NotationN/AN/A
ProcessingInstruction#processing-instructionProcess instruction text minus the target
SignificantWhitespaceN/AThe white space within markup
XmlDeclarationXmlThe version number and encoding string
Whitespace#whitespaceThe white space in element content
Text#textThe text content of an element or attribute

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.227.82