RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.GetText Method

Returns the text value of the node.

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

Use the TXMLNode object's IXMLNode interface to call the protected GetText method. GetText returns the text of the node. For example, if the node represents an XML fragment such as

<Title> Understanding XML </Title>

GetText returns the string 'Understanding XML'. 

GetText is intended for use when the GetIsTextElement method returns true. If GetIsTextElement returns false, GetText returns an empty string if the node has no children, otherwise it raises an exception. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!