IXmlNode.NodeName IXmlNode.NodeName IXmlNode.NodeName IXmlNode.NodeName IXmlNode.NodeName Property

Definition

Returns the qualified name for attribute, document type, element, entity, or notation nodes. Returns a fixed string for all other node types.

public : Platform::String NodeName { get; }
winrt::hstring NodeName();
public string NodeName { get; }
Public ReadOnly Property NodeName As string
var string = iXmlNode.nodeName;
Property Value
string string string

The qualified node name, which varies depending on the node type.

Remarks

This value depends on the NodeType property. The following table describes this dependency.

NodeTypeNodeName
ElementtagName
Attributename of attribute
Text#text
CDATASection#cdata-section
EntityReferencename of entity referenced
Entityentity name
ProcessingInstructiontarget
Comment#comment
Document#document
DocumentTypedocument type name
DocumentFragment#document-fragment
Notationnotation name