This documentation is archived and is not being maintained.

XmlValidatingReader.XmlLang Property

Gets the current xml:lang scope.

[Visual Basic]
Overrides Public ReadOnly Property XmlLang As String
public override string XmlLang {get;}
public: __property String* get_XmlLang();
public override 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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

XmlValidatingReader Class | XmlValidatingReader Members | System.Xml Namespace