$Content - a pseudo-attribute

Section - Transforming to and from Nulls

$Content

returns the immediate text content of an XML node. If the node has sub-nodes then $content is the sum of all the text nodes which lie immediately beneath the node. If you only require the first text node than you should use $smallContent. If you require all the text nodes included beneath the node then you are advsied to use $bigContent.

Notes:

Notes on Mapping to $Content

Example

You can use $Content just as though it was an attribute:

TRANSFORM A <- B

    -- copy the old content to the attribute

    attr1    := $Content;

    -- set the new node content with the value in the attribute

    $Content := attr2;