RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLNode.IsTextElement Property

Indicates whether the node has a single text value.

Pascal
property IsTextElement: Boolean;
C++
__property Boolean IsTextElement;

Read IsTextElement to determine whether this node represents a single text value. For example, if the node represents the following:

<Title> Understanding XML </Title>

IsTextElement is true, because the node represents a tagged element and the text that is its value.

Note: In the underlying DOM implementation, nodes for which IsTextElement is true are element nodes that have a single child node that is a text node. IXMLNode flattens this out so that you can use the element node to work with the text value (through the Text property), rather than requiring you to use a separate node for the text value.
 

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