DOMXPathEvaluator
.
More...
#include <DOMXPathEvaluator.hpp>
Inheritance diagram for xercesc::DOMXPathEvaluator:
Public Member Functions | |
Destructor | |
virtual | ~DOMXPathEvaluator () |
Destructor. | |
Functions introduced in DOM Level 3 | |
virtual const DOMXPathExpression * | createExpression (const XMLCh *expression, const DOMXPathNSResolver *resolver)=0 |
Creates a parsed XPath expression with resolved namespaces. | |
virtual const DOMXPathNSResolver * | createNSResolver (DOMNode *nodeResolver)=0 |
Adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document. | |
virtual void * | evaluate (const XMLCh *expression, DOMNode *contextNode, const DOMXPathNSResolver *resolver, unsigned short type, void *result)=0 |
Evaluates an XPath expression string and returns a result of the specified type if possible. | |
Protected Member Functions | |
Hidden constructors | |
DOMXPathEvaluator () |
DOMXPathEvaluator
.
In a DOM implementation which supports the XPath 3.0 feature, the DOMXPathEvaluator
interface will be implemented on the same object which implements the Document interface permitting it to be obtained by casting or by using the DOM Level 3 getInterface method. In this case the implementation obtained from the Document supports the XPath DOM module and is compatible with the XPath 1.0 specification. Evaluation of expressions with specialized extension functions or variables may not work in all implementations and is, therefore, not portable. XPathEvaluator implementations may be available from other sources that could provide specific support for specialized extension functions or variables as would be defined by other specifications.
|
|
|
Destructor.
|
|
Creates a parsed XPath expression with resolved namespaces. This is useful when an expression will be reused in an application since it makes it possible to compile the expression string into a more efficient internal form and preresolve all namespace prefixes which occur within the expression.
|
|
Adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated relative to the context of the node where it appeared within the document. This adapter works like the DOM Level 3 method lookupNamespaceURI on nodes in resolving the namespaceURI from a given prefix using the current information available in the node's hierarchy at the time lookupNamespaceURI is called. also correctly resolving the implicit xml prefix.
|
|
Evaluates an XPath expression string and returns a result of the specified type if possible.
|