Section 25.330. XPathExpression: a compiled XPath query


25.330. XPathExpression: a compiled XPath query

Firefox 1.0, Safari 2.01, Opera 9: Object XPathExpression

25.330.1. Methods


evaluate( )

Evaluates this expression for a specified context node.

25.330.2. Description

An XPathExpression object is a compiled representation of an XPath query, returned by Document.createExpression( ). Evaluate the expression against a particular document node with the evaluate( ) method. If you need to evaluate an XPath query only once, you can use Document.evaluate( ), which compiles and evaluates the expression in a single step.

Internet Explorer does not support the XPathExpression object. For IE-specific XPath methods, see Node.selectNodes( ) and Node.selectSingleNode( ).

25.330.3. See Also

Document.createExpression( )
Document.evaluate( )
Node.selectNodes( )
Node.selectSingleNode( )
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