get_Value()

XmlValidatingReader::get_Value() method

Returns the text value of the current node.

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

Return Value

The value returned depends on the XmlValidatingReader::NodeType 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 between markup in a mixed content model.
TextThe content of the text node.
WhitespaceThe white space between markup.
XmlDeclarationThe content of the declaration.

See Also