System::Xml::XmlTextReader::get_Value method

XmlTextReader::get_Value method

Returns the text value of the current node.

String System::Xml::XmlTextReader::get_Value() override

ReturnValue

The value returned depends on the XmlTextReader::get_NodeType value of the node.

Remarks

The following table lists node types that have a value to return. All other node types return String::Empty.
Node TypeValue
AttributeThe value of the attribute.
CDATAThe content of the CDATA section.
CommentThe content of the comment.
DocumentTypeThe internal subset.
ProcessingInstructionThe entire content, excluding the target.
SignificantWhitespaceThe white space within an xml:space=‘preserve’ scope.
TextThe content of the text node.
WhitespaceThe white space between markup.
XmlDeclarationThe content of the declaration.

See Also