Edit

Share via


XPathNavigator.XmlLang Property

Definition

Gets the xml:lang scope for the current node.

public:
 virtual property System::String ^ XmlLang { System::String ^ get(); };
public:
 abstract property System::String ^ XmlLang { System::String ^ get(); };
public virtual string XmlLang { get; }
public abstract string XmlLang { get; }
member this.XmlLang : string
Public Overridable ReadOnly Property XmlLang As 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