Returns the node as it is and with trim on the left of the content preserving the interior xml tags. The node can be passed as argument or as attribute.
 

1 dom.getChildNodesAsText

<dom.getChildNodesAsText name='name'>
    <node /> !
</dom.getChildNodesAsText>
Example

Get the content of two nodes of a document.

Copy
<xsql-script name='dom_node_getChildNodesAsText'>
    <body>
        <set name='root'>
            <dom.parse><file name='c:\tmp\data.xml' type='absolute' /></dom.parse>
        </set>

        <!-- It is situated in the text node which contains the text hello -->
        <set name='elem_text'>
            <dom.element.getFirstChildElement><root /></dom.element.getFirstChildElement>
        </set>

        <!-- Return:
<element>hello</element>
<element>world</element>
         -->
        <println>
            <dom.node.getChildNodesAsText>
                <root/>
            </dom.node.getChildNodesAsText>
        </println>

        <!-- Return:
         hello
        -->     <println>
            <dom.node.getChildNodesAsText>
                <elem_text/>
            </dom.node.getChildNodesAsText>
        </println>

    </body>
</xsql-script>