Returns a string with the node in text.
 

1 dom.node.toString

<dom.node.toString>
    <node /> !
</dom.node.toString>
Example

Returns a node as string.

Copy
<xsql-script name='dom_node_toString'>

    <body>

        <set name='node'>
            <dom.parse><file name='data.xml' type='absolute' /></dom.parse>
        </set>

        <set name='resul'>
            <dom.node.toString>
                <node />
            </dom.node.toString>
        </set>

        <!-- Returns 21 -->
        <println>
            <string.indexOf><resul/><string>hello</string></string.indexOf>
        </println>

    </body>
</xsql-script>