RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNode.Text Property

Represents the Text of the node.

Pascal
property Text: DOMString;
C++
__property DOMString Text;

Text represents the text of the node. For example, if the node corresponds to

<Title> Understanding XML </Title>

The text of the node is the string 'Understanding XML'. 

Text is intended for use nodes where the IsTextElement property is true. If IsTextElement is false, then 

If the node has no children, the value of Text is an empty string. Setting Text is this case result in a node where IsTextElement istrue. 

If the node has children (other than a single DOM text node), reading or setting Text causes an exception. 

 

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