ref: e864dc493153ca5083018c94a3737165613ef0d5
dir: /xpath/
.TH XPATH 2 .SH NAME xmllookpath \- XPath support .SH SYNOPSIS .de PB .PP .ft L .nf .. .PB #include <u.h> #include <libc.h> #include <xml.h> #include <xpath.h> .PB enum { XTelems = 1, XTstring = 2, } .PB struct XpResult { int type; /* type of XpResult */ int num; /* number of results */ union { /* array of results */ char **strings; /* if type == XTstring */ Elem **elems; /* if type == XTelems */ }; ... }; .PB .PD 0 .ta +\w'\fLXpResult 'u XpResult xmllookpath(Elem *ep, char *xpath) .SH DESCRIPTION .PP .I Libxpath is an extension library to .IR libxml . It provides XPath functionality for looking up certain nodes in an existing in-memory XML DOM model. .PP .I Xmllookpath is the main function for querying the XML document using an XPath string. It's using .I ep as the reference element within the DOM model. .SH SOURCE /sys/src/libxpath .SH "SEE ALSO" .IR xml (2). .SH BUGS The current implementation of XPath is incomplete and very limited. A future implementation should be able to support the full set of XPath.