Mono Class Library: System.Xml.XmlTextReader Overview | Members

System.Xml.XmlTextReader.XmlLang Property

Gets the current xml:lang scope. [Edit]

public override string XmlLang { get; }

Value

A string containing the current xml:lang scope. [Edit]

Remarks

This property is read-only.

Note:

This property represents the xml:lang scope within which the current node resides. For example, the following is an XML fragment with xml:lang set to US English:

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

When the reader is positioned on the name element, this property returns "en-us".

The returned string is also in the XmlTextReader.NameTable for the reader.

This property overrides XmlReader.XmlLang.

[Edit]

Requirements

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