RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.SetText Method

Sets the text value of the node.

Pascal
procedure SetText(const Value: DOMString);
C++
__fastcall SetText(const DOMString Value);

Use the TXMLNode object's IXMLNode interface to call the protected SetText method. SetText replaces the text of the node. 

SetText is intended for use when the GetIsTextElement method returns true. If GetIsTextElement returns false, SetText adds a new text value to a node that has no children, otherwise, it raises an exception. 

 

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