Syntax var xpathResult = document.evaluate( xpathExpression, contextNode, namespaceResolver, resultType, result); xpathExpression is a string representing the XPath to be evaluated. contextNode specifies the context node for the query (see the [http://www.w3.org/TR/xpath XPath specification). It's common to pass document as the context node. namespaceResolver is a function that will be passed