Returns the element node which is immediately following the indicated node. If there is not, returns null. The node can be passed as
argument or as attribute.
1 dom.element.getNextSiblingElement
<dom.element.getNextSiblingElement name='name'>
<node /> ?
</dom.element.getNextSiblingElement>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | String | Name |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Enode | Node |
Returns | |
---|---|
Type | Description |
Node | Returns the first child of the element type of the node. If there is not, returns null. |
Example
Get the node of the element type immediately following the root node of the file.
Copy
<xsql-script name='dom_node_getNextSiblingElement'> <body> <set name='root'> <dom.parse><file name='data.xml' type='absolute' /></dom.parse> </set> <!-- It is situated in the element with the text hello. --> <set name='elem1'> <dom.element.getFirstChildElement> <root/> </dom.element.getFirstChildElement> </set> <!-- Returns: <element>world</element> --> <println> <dom.element.getNextSiblingElement> <elem1/> </dom.element.getNextSiblingElement> </println> </body> </xsql-script>