Xml.XMLDoc.TXMLNode.GetNodeName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetNodeName: DOMString;

C++

System::UnicodeString __fastcall GetNodeName();

Properties

Type Visibility Source Unit Parent
function protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNode

Description

Returns the node name.

Use the TXMLNode object's IXMLNode interface to call the protected GetNodeName method. GetNodeName returns the name of the underlying DOM node.

The node's name depends on the type of the node, as indicated in the following table:



NodeType NodeName

ntAttribute

The attribute name

ntElement

The tag name

ntText

'#text'

ntCData

'#cdata-section'

ntEntityRef

The name of the entity reference.

ntEntity

The entity name

ntProcessingInstr

the target of the processing instruction

ntComment

'#comment'

ntDocument

'#document'

ntDocType

The document type name

ntDocFragment

'#document-fragment'

ntNotation

The notation name



Note: If GetPrefix and GetLocalName both return values for a node, the node name is the combination of these two values.

See Also