Websydian v6.1 online documentationOnline documentation - Websydian v6.5

Websydian DOM - Parts (XPath Function Suite)


The XPath function contains functions used to access data in the XML document in accordance with the XPath specification.

selectNodes Function

The selectNodes functions selects all nodes matching the XPath expression given as input parameter. An ObjectReference and an XPath expression should be passed as input parameters. The ObjectReference is a reference to the node which is the root of the XPath node search. 

selectNodes returns a ObjectNodeList which is a reference to a NodeList containing the nodes matching the XPath expression.   

selectSingleNode Function

The selectSingleNode function is equivalent to selectNodes except that it returns only the first node matching the XPath expression given as input parameter. The node is returned as an ObjectNode reference.