XPathNavigator.XmlLang Property

Definition

Gets the xml:lang scope for the current node.

public:
 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.

Remarks

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">  
    <name>Name</name>  
</root>  

Applies to