System.Xml.XPath.XPathNavigator.XmlLang Property

Gets the xml:lang scope for the current node.

Syntax

public virtual string XmlLang { get; }

Value

A string value that contains xml:lang context value.

Remarks

In the example XML below, when the System.Xml.XPath.XPathNavigator is positioned on the name element, the XPathNavigator.XmlLang property returns a scope of en-us indicating that the node is in the scope of a xml:lang="en-us" attribute.

Example

<root xml:lang="en-us">
    <name>Name</name>
</root>

Requirements

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