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

System.Xml.XmlReader.Value Property

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

public abstract string Value { get; }

Value

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

Remarks

Operation

The value returned depends on the XmlReader.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 between markup in a mixed content model, or in the scope of xml:space = "preserve".
Text

The content of the text node.

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

This property is read-only.

Note to Inheritors
This property must be overridden in order to provide the functionality described above, as there is no default implementation.

[Edit]

Requirements

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