This documentation is archived and is not being maintained.

XmlReader.XmlLang Property

When overridden in a derived class, gets the current xml:lang scope.

[Visual Basic]
Public MustOverride ReadOnly Property XmlLang As String
public abstract string XmlLang {get;}
public: __property virtual String* get_XmlLang() = 0;
public abstract function get XmlLang() : String;

Property Value

The current xml:lang scope.


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

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



When the reader is positioned on the name element, you can use this property to find that it is in the scope of a US English xml:lang attribute.

The string returned is also in NameTable.


See XmlLang (in the XmlTextReader class) for an example using this property.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

XmlReader Class | XmlReader Members | System.Xml Namespace