Returns the nodes which accomplish the xpath.If there is not, returns null. The node can be passed as argument or as attribute.
1 dom.getElementsByXPath
<dom.getElementsByXPath
name='name'
tagname='tagname'
>
<node /> ?
</dom.getElementsByXPath>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | String | ||||
Atagname | String |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Enode | Node |
Returns | |
---|---|
Type | Description |
Node | Returns the nodes which accomplish the xpath. |
Example
Get the node of a specific xpath:
Copy
<xsql-script name='dom_getElementsByXPath'> <body> <set name='root'> <dom.parse><file name='data.xml' type='absolute' /></dom.parse> </set> <!-- Retorna: <object code="test1" dbms="demo_utf8">pQ4WdpbmEgMQoK</object> <object code="test2" dbms="cust_iso">xe3dscdesf346</object> --> <println> <dom.getElementsByXPath xpath='/SOAP-ENV:Envelope/SOAP-ENV:Body/ns1:executeResponse/return/objresponse/object'> <root/> </dom.getElementsByXPath> </println> </body> </xsql-script>