Feedback

  • Contents
 

XML Get Text

This XML tool returns the text of the node. The text returned depends on the type of node as follows:

Attribute, Document, Entity:

Returns a string representing the value of the node. This comprises the concatenated node value of all its child nodes with entities expanded.

Text, CDATA, Comment, Processing Instructions:

Returns the text contained in the node, which is the same as ‘Value’ returned by XML Get Node Info.

Element:

Returns a string that represents the element content. Note that this will also include the text content from all child elements, concatenated in document order. For example, the branch <A><B>This</B><B>Is</B><B>A</B><B>Test</B></A> will return "ThisIsATest".

Document Fragment:

Returns the text comprised of the concatenation of all descendant nodes.

Entity Reference:

Returns the string representation of the entity reference.

Document Type, Notation:

Returns the empty string "". These node types do not have associated text.

Inputs

Node

Node whose text is to be returned.

Outputs

Text

Text of the node and potentially of all its child nodes concatenated, entity references expanded etc., depending on type of the node. See the description above.

Exit Paths

Success

This path is taken if the node text was successfully retrieved.

Failure

This path is taken if the operation fails.