System.Xml.XPath.XPathNavigator.Value Property

Gets the value of the current node.

Syntax

public abstract string Value { get; }

Value

A string that represents the value of the current node.

Remarks

The definition of the "value" of a node is 1) concatenation of the values of each descendant nodes for XPathNodeType.Root and XPathNodeType.Element nodes, 2) namespace URI for XPathNodeType.Namespace, and 3) value string (as is) for all other kind of node types.

Note: When the instance of this class is created from System.Xml.XmlDocument, the sequential System.Xml.XmlCharacterData nodes (except for System.Xml.XmlComment nodes) are regarded as one text or node (strictly to say, XPathNodeType.Text, XPathNodeType.SignificantWhitespace or XPathNodeType.Whitespace).

Requirements

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