Code example for XPath

Methods: compile, setNamespaceContext, setXPathFunctionResolver, setXPathVariableResolver