We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

document.createExpression Redirect 1

« DOM Reference

This method compiles an XPathExpression which can then be used for (repeated) evaluations.

Syntax

xpathExpr = document.createExpression(xpathText, namespaceURLMapper);

Arguments

  • String xpathText (the XPath expression to be compiled)
  • Function namespaceURLMapper (maps a namespace prefix to a namespace URL (or null if none needed))

Firefox 3 note

Prior to Firefox 3, you could call this method on documents other than the one you planned to run the XPath against. Under Firefox 3, you must call it on the same document.

Return

XPathExpression

Document Tags and Contributors

Last updated by: Sheppy,