Returns a string with the node in text.
1 dom.node.toString
<dom.node.toString>
<node /> !
</dom.node.toString>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Enode | Node |
Returns | |
---|---|
Type | Description |
Node | The node in string format (text). |
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>