When overridden in a derived class, gets the local name of the current node.
Assembly: System.Xml (in System.Xml.dll)
Property ValueType: System.String
The name of the current node with the prefix removed. For example, LocalName is book for the element <bk:book>.
For node types that do not have a name (like Text, Comment, and so on), this property returns String.Empty.
The following example displays the local name of each node, and, if they exist, the prefix and namespace URI.
The example uses the file, book2.xml, as input.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1