xpath

Name

xpath —

Synopsis



#define     XPATH_UNDEFINED
#define     XPATH_NODESET
#define     XPATH_BOOLEAN
#define     XPATH_NUMBER
#define     XPATH_STRING
#define     XPATH_USERS
int         (*xmlXPathConvertFunc)          (xmlXPathObjectPtr obj,
                                             int type);
void        (*xmlXPathEvalFunc)             (xmlXPathParserContextPtr ctxt,
                                             int nargs);
xmlXPathObjectPtr (*xmlXPathAxisFunc)       (xmlXPathParserContextPtr ctxt,
                                             xmlXPathObjectPtr cur);
void        (*xmlXPathFunction)             (xmlXPathParserContextPtr ctxt,
                                             int nargs);
xmlXPathContextPtr xmlXPathNewContext       (xmlDocPtr doc);
void        xmlXPathFreeContext             (xmlXPathContextPtr ctxt);
xmlXPathObjectPtr xmlXPathEval              (const xmlChar *str,
                                             xmlXPathContextPtr ctxt);
void        xmlXPathFreeObject              (xmlXPathObjectPtr obj);
xmlXPathObjectPtr xmlXPathEvalExpression    (const xmlChar *str,
                                             xmlXPathContextPtr ctxt);

Description

Details

XPATH_UNDEFINED

#define XPATH_UNDEFINED	0


XPATH_NODESET

#define XPATH_NODESET	1


XPATH_BOOLEAN

#define XPATH_BOOLEAN	2


XPATH_NUMBER

#define XPATH_NUMBER	3


XPATH_STRING

#define XPATH_STRING	4


XPATH_USERS

#define XPATH_USERS	5


xmlXPathConvertFunc ()

int         (*xmlXPathConvertFunc)          (xmlXPathObjectPtr obj,
                                             int type);

obj : 
type : 
Returns : 


xmlXPathEvalFunc ()

void        (*xmlXPathEvalFunc)             (xmlXPathParserContextPtr ctxt,
                                             int nargs);

ctxt : 
nargs : 


xmlXPathAxisFunc ()

xmlXPathObjectPtr (*xmlXPathAxisFunc)       (xmlXPathParserContextPtr ctxt,
                                             xmlXPathObjectPtr cur);

ctxt : 
cur : 
Returns : 


xmlXPathFunction ()

void        (*xmlXPathFunction)             (xmlXPathParserContextPtr ctxt,
                                             int nargs);

ctxt : 
nargs : 


xmlXPathNewContext ()

xmlXPathContextPtr xmlXPathNewContext       (xmlDocPtr doc);

Create a new xmlXPathContext

doc : the XML document
Returns :the xmlXPathContext just allocated.


xmlXPathFreeContext ()

void        xmlXPathFreeContext             (xmlXPathContextPtr ctxt);

Free up an xmlXPathContext

ctxt : the context to free


xmlXPathEval ()

xmlXPathObjectPtr xmlXPathEval              (const xmlChar *str,
                                             xmlXPathContextPtr ctxt);

Evaluate the XPath Location Path in the given context.

str : the XPath expression
ctxt : the XPath context
Returns :the xmlXPathObjectPtr resulting from the eveluation or NULL. the caller has to free the object.


xmlXPathFreeObject ()

void        xmlXPathFreeObject              (xmlXPathObjectPtr obj);

Free up an xmlXPathObjectPtr object.

obj : the object to free


xmlXPathEvalExpression ()

xmlXPathObjectPtr xmlXPathEvalExpression    (const xmlChar *str,
                                             xmlXPathContextPtr ctxt);

Evaluate the XPath expression in the given context.

str : the XPath expression
ctxt : the XPath context
Returns :the xmlXPathObjectPtr resulting from the evaluation or NULL. the caller has to free the object.