Xml.XMLDoc.TXMLNode.SetText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SetText(const Value: DOMString);

C++

void __fastcall SetText(const System::UnicodeString Value);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNode

Description

Sets the text value of the node.

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.

See Also