Mono Class Library: System.Xml.XmlTextReader Overview | Members

System.Xml.XmlTextReader.Value Property

Gets the text value of the current node. [Edit]

public override string Value { get; }

Value

A string containing the text value of the current node. [Edit]

Remarks

This property is read-only.

The value returned depends on the XmlTextReader.NodeType. 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 in the scope of xml:space = "preserve".
Text

The content of the text node.

WhitespaceThe white space between markup.
XmlDeclarationThe content of the declaration.
Note:

This property overrides XmlReader.Value.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0