25.67. Document.createExpression( ): create an XPath expression for later evaluationFirefox 1.0, Safari 2.01, Opera 9:25.67.1. SynopsisXPathExpression createExpression(String xpathText, Function namespaceURLMapper) throws XPathException 25.67.1.1. Arguments
25.67.1.2. ReturnsAn XPathExpression object. 25.67.1.3. ThrowsThis method throws an exception if the xpathText contains a syntax error or if it uses a namespace prefix that cannot be resolved by namespaceURLMapper. 25.67.2. DescriptionThis method takes a string representation of an XPath expression and converts it to a compiled representation, an XPathExpression. In addition to the expression, this method takes a function of the form function(prefix) that resolves a namespace prefix string and returns it as a full namespace URL string. Internet Explorer does not support this API. See Node.selectNodes( ) for an IE-specific alternative. 25.67.3. See AlsoDocument.evaluate( ), Node.selectNodes( ), XPathExpression, XPathResult |