RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.GetNodeName Method

Returns the node name.

Pascal
function GetNodeName: DOMString;
C++
__fastcall DOMString GetNodeName();

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.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!