Name
GdomeXPathEvaluator -- Interface XPathEvaluator
implementation.
Synopsis
struct GdomeXPathEvaluator;
GdomeXPathEvaluator* gdome_xpeval_mkref (void);
void gdome_xpeval_ref (GdomeXPathEvaluator *self,
GdomeException *exc);
void gdome_xpeval_unref (GdomeXPathEvaluator *self,
GdomeException *exc);
GdomeXPathNSResolver* gdome_xpeval_createNSResolver
(GdomeXPathEvaluator *self,
GdomeNode *nodeResolver,
GdomeException *exc);
GdomeXPathResult* gdome_xpeval_createResult (GdomeXPathEvaluator *self,
GdomeException *exc);
GdomeXPathResult* gdome_xpeval_evaluate (GdomeXPathEvaluator *self,
GdomeDOMString *expression,
GdomeNode *contextNode,
GdomeXPathNSResolver *resolver,
unsigned int type,
GdomeXPathResult *result,
GdomeException *exc);
|
Description
This implements the DOM Level 3 XPath W3C Working Draft 08
February 2002. API SUBJECT TO CHANGE!
The evaluation of XPath expressions is provided by GdomeXPathEvaluator,
which will provide evaluation of XPath 1.0 expressions with no
specialized extension functions or variables. It is expected that
the GdomeXPathEvaluator
interface will be implemented on the same object which implements
the GdomeDocument
interface in an implementation which supports the XPath DOM module.
GdomeXPathEvaluator
implementations may be available from other sources that may
provide support for new versions of XPath or special extension
functions or variables which are not defined in this
specification.
Details
struct GdomeXPathEvaluator
struct GdomeXPathEvaluator {
gpointer user_data;
};
|
gdome_xpeval_mkref ()
Constructor of the XPathEvaluator interface.
gdome_xpeval_ref ()
Increase the reference count of the XPathEvaluator
structure.
gdome_xpeval_unref ()
Decrease the reference count of the XPathEvaluator. Free the
structure if XPathEvaluator will have zero reference.
gdome_xpeval_createNSResolver
()
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.
gdome_xpeval_createResult
()
gdome_xpeval_evaluate ()
Evaluates an XPath expression string