XML DOM selectNodes() Method
Definition and Usage
The selectNodes() method selects nodes using an XPath query.
Syntax:
nodeObject.selectNodes(query)
Parameters | Description |
---|---|
query | XPath Query String. |
Return Value
contains a NodeList of nodes that match the query.
Description
This method, specific to IE, calculates an XPath expression using this node as the root node for the query and returns the results as a NodeList. The selectNodes() method is only used for XML document nodes and not for HTML document nodes. Note that since Document ObjectThey are their own nodes, and this method can be applied to the entire XML document.
See Document.evaluate(), for an alternative cross-browser method.