Export (0) Print
Expand All

XmlValidatingReader.XmlLang Property

Gets the current xml:lang scope.

[Visual Basic]
Overrides Public ReadOnly Property XmlLang As String
[C#]
public override string XmlLang {get;}
[C++]
public: __property String* get_XmlLang();
[JScript]
public override function get XmlLang() : String;

Property Value

The current xml:lang scope.

Remarks

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">

<name>Fred</name>

</root>

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.

Requirements

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

Show:
© 2014 Microsoft