Return the first child of the node.If there is not, returns null. The node can be passed as argument or as attribute.
1 dom.getFirstChild
<dom.getFirstChild name='name'>
<node /> !
</dom.getFirstChild>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | String |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Enode | Node |
Returns | |
---|---|
Type | Description |
Node | Returns the first child of the node. If there is not, returns null. |
Example
Get the first child of the root node of the document.
Copy
<xsql-script name='dom_node_getFirstChild'> <body> <set name='root'> <dom.parse><file name='data.xml' type='absolute' /></dom.parse> </set> <!-- It is situated in the text node line break --> <!-- the first child of the root node --> <println> <dom.node.getFirstChild> <root/> </dom.node.getFirstChild> </println> </body> </xsql-script>