Gnome XML Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
struct xmlLocationSet; typedef xmlLocationSetPtr; void xmlXPtrFreeLocationSet (xmlLocationSetPtr obj); xmlLocationSetPtr xmlXPtrLocationSetMerge (xmlLocationSetPtr val1, xmlLocationSetPtr val2); xmlXPathContextPtr xmlXPtrNewContext (xmlDocPtr doc, xmlNodePtr here, xmlNodePtr origin); xmlXPathObjectPtr xmlXPtrEval (const xmlChar *str, xmlXPathContextPtr ctx); void xmlXPtrRangeToFunction (xmlXPathParserContextPtr ctxt, int nargs); |
struct xmlLocationSet { int locNr; /* number of locations in the set */ int locMax; /* size of the array as allocated */ xmlXPathObjectPtr *locTab;/* array of locations */ }; |
void xmlXPtrFreeLocationSet (xmlLocationSetPtr obj); |
Free the LocationSet compound (not the actual ranges !).
obj : | the xmlLocationSetPtr to free |
xmlLocationSetPtr xmlXPtrLocationSetMerge (xmlLocationSetPtr val1, xmlLocationSetPtr val2); |
Merges two rangesets, all ranges from val2 are added to val1
val1 : | the first LocationSet |
val2 : | the second LocationSet |
Returns : | val1 once extended or NULL in case of error. |
xmlXPathContextPtr xmlXPtrNewContext (xmlDocPtr doc, xmlNodePtr here, xmlNodePtr origin); |
Create a new XPointer context
doc : | the XML document |
here : | the node that directly contains the XPointer being evaluated or NULL |
origin : | the element from which a user or program initiated traversal of the link, or NULL. |
Returns : | the xmlXPathContext just allocated. |
xmlXPathObjectPtr xmlXPtrEval (const xmlChar *str, xmlXPathContextPtr ctx); |
Evaluate the XPath Location Path in the given context.
str : | the XPointer expression |
ctx : | the XPointer context |
Returns : | the xmlXPathObjectPtr resulting from the eveluation or NULL. the caller has to free the object. |
void xmlXPtrRangeToFunction (xmlXPathParserContextPtr ctxt, int nargs); |
Implement the range-
ctxt : | the XPointer Parser context |
nargs : |