Section 25.219. Node.selectNodes( ): select nodes with an XPath query


25.219. Node.selectNodes( ): select nodes with an XPath query

IE 6

25.219.1. Synopsis

 NodeList selectNodes(String query) 

25.219.1.1. Arguments

query

The XPath query string.

25.219.1.2. Returns

A single Node that matches the query, or null if there are none.

25.219.2. Description

This IE-specific method evaluates an XPath expression using this node as the context node. It returns the first matching node found, or null if no nodes match. The selectSingleNode( ) method exists only on the nodes of XML documents, not HTML documents. Note that since Document objects are themselves nodes, this method can be applied to entire XML documents.

For a cross-browser alternative, see Document.evaluate( ).

25.219.3. See Also

Document.evaluate( ), XPathExpression; Chapter 21




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net