Evaluate this XPath against a given context.
The context of evaluation my be a document, an element, or a set of elements.
If the expression evaluates to a single primitive (String, Number or Boolean) type, it is returned directly. Otherwise, the returned value is a List (a node-set, in the terms of the specification) of values.
When using this method, one must be careful to test the class of the returned objects, and of each of the composite members if a List is returned. If the returned members are XML entities, they will be the actual Document, Element or Attribute objects as defined by the concrete XML object-model implementation, directly from the context document. This does not return copies of anything, but merely returns references to entities within the source document.
@param The node, nodeset or Context object for evaluation. This value can be null
@return The result of evaluating the XPath expressionagainst the supplied context.