System.Xml.XPath.XPathNavigator.LocalName Property

When overridden in a derived class, gets the XPathNavigator.Name of the current node without any namespace prefix.

Syntax

public abstract string LocalName { get; }

Value

A string that represents the local name or the namespace prefix.

Remarks

The local name returned depends on the System.Xml.XPath.XPathNodeType of the current node. For example, the local name for the <bk:book> element is book.

The following table lists the value returned by the XPathNavigator.LocalName property, based on the System.Xml.XPath.XPathNodeType of the current node.

XPathNodeType.Element

The local name of the element.

XPathNodeType.Attribute

The local name of the attribute.

XPathNodeType.Namespace

The prefix associated with the namespace URI.

XPathNodeType.ProcessingInstruction

The target of the processing instruction.

All other System.Xml.XPath.XPathNodeType nodes

string.Empty.

Requirements

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