get_Value()

XmlNode::get_Value() method

Returns the value of the node.

virtual String System::Xml::XmlNode::get_Value()

Return Value

The value returned depends on the XmlNode::get_NodeType of the node:

TypeValue
AttributeThe value of the attribute.
CDATASectionThe content of the CDATA Section.
CommentThe content of the comment.
Documentnullptr.
DocumentFragmentnullptr.
DocumentTypenullptr.
Elementnullptr. You can use the XmlElement::InnerText or XmlElement::get_InnerXml values to access the value of the element node.
Entitynullptr.
EntityReferencenullptr.
Notationnullptr.
ProcessingInstructionThe entire content excluding the target.
TextThe content of the text node.
SignificantWhitespaceThe white space characters. White space can consist of one or more space characters, carriage returns, line feeds, or tabs.
WhitespaceThe white space characters. White space can consist of one or more space characters, carriage returns, line feeds, or tabs.
XmlDeclarationThe content of the declaration (that is, everything between <?xml and ?>).

See Also