XmlText.NodeName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the qualified name for attribute, document type, element, entity, or notation nodes. Returns a fixed string for all other node types.
public:
property Platform::String ^ NodeName { Platform::String ^ get(); };
winrt::hstring NodeName();
public string NodeName { get; }
var string = xmlText.nodeName;
Public ReadOnly Property NodeName As String
Property Value
The qualified node name, which varies depending on the node type.
Implements
Remarks
This value depends on the NodeType property. The following table describes this dependency.
NodeType | NodeName |
---|---|
Element | tagName |
Attribute | name of attribute |
Text | #text |
CDATASection | #cdata-section |
EntityReference | name of entity referenced |
Entity | entity name |
ProcessingInstruction | target |
Comment | #comment |
Document | #document |
DocumentType | document type name |
DocumentFragment | #document-fragment |
Notation | notation name |