Xml.XMLDoc.TXMLNode.GetNodeValue
Delphi
function GetNodeValue: OleVariant;
C++
System::OleVariant __fastcall GetNodeValue();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Xml.XMLDoc.pas Xml.XMLDoc.hpp |
Xml.XMLDoc | TXMLNode |
Description
Returns the value of this node.
Use the TXMLNode object's IXMLNode interface to call the protected GetNodeValue method. GetNodeValue returns the value of the node. This value depends on the type of the node, as indicated in the following table:
NodeType | Value |
---|---|
ntAttribute |
The attribute value |
ntElement |
If the element contains only text, this is that text value. Otherwise, GetNodeValue raises an exception. |
ntText |
The text |
ntCData |
The content of the CDATA section. |
ntEntityRef |
nil (Delphi) or NULL (C++) |
ntProcessingInstr |
The content of the processing instruction except for the target. |
ntComment |
The value (text) of the comment. |
ntDocFragment |
nil (Delphi) or NULL (C++) |