Returns the node who is immediately following the indicated node. If there is not, returns null.
The node can be passed as argument or as attribute.
1 dom.getNextSibling
<dom.getNextSibling name='name'>
<node /> !
</dom.getNextSibling>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | String |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Enode | Node |
Returns | |
---|---|
Type | Description |
Node | Return the node immediately following the node. If there is not, returns null. |
Example
Get the node immediately follong the root node of the file.
Copy
<xsql-script name='dom_node_getNextSibling'> <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.getNextSibling> <root/> </dom.node.getNextSibling> </println> </body> </xsql-script>