Xml.XMLIntf.IXMLNode.Text

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Text: DOMString read GetText write SetText;

C++

__property System::UnicodeString Text = {read=GetText, write=SetText};

Properties

Type Visibility Source Unit Parent
property public
Xml.XMLIntf.pas
Xml.XMLIntf.hpp
Xml.XMLIntf IXMLNode

Description

Represents the Text of the node.

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.

See Also