Gets the name of the node without the namespace prefix.
[Visual Basic] MustOverride Public ReadOnly Property LocalName As String [C#] public string LocalName {abstract get;} [C++] public: __property virtual String* get_LocalName() = 0; [JScript] public abstract function get LocalName() : String;
The name of the node with the prefix removed. For example, LocalName is yyy for the element <xxx:yyy>.
The name returned is dependent on the NodeType of the node:
Type | Name |
---|---|
Attribute | name of attribute |
CDATA | #cdata-section |
Comment | #comment |
Document | #document |
DocumentFragment | #document-fragment |
DocumentType | document type name |
Element | tag name |
Entity | entity name |
EntityReference | name of entity referenced |
Notation | notation name |
ProcessingInstruction | target |
Text | #text |
For nodes created with a DOM Level 1 method, such as CreateElement, it is null.