XPathNavigator.XmlLang Property


Gets the xml:lang scope for the current node.

 abstract property System::String ^ XmlLang { System::String ^ get(); };
public abstract string XmlLang { get; }
member this.XmlLang : string
Public MustOverride ReadOnly Property XmlLang As String

Property Value

A String that contains the value of the xml:lang scope, or Empty if the current node has no xml:lang scope value to return.


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

<root xml:lang="en-us">  

Applies to