![]() |
zeep::xml::xpath
// In header: <zeep/xml/xpath.hpp> class xpath { public: // construct/copy/destruct xpath(const std::string &); xpath(const char *); xpath(const xpath &); xpath & operator=(const xpath &); ~xpath(); // public member functions template<typename NODE_TYPE> std::list< NODE_TYPE * > evaluate(const node &) const; template<typename NODE_TYPE> std::list< NODE_TYPE * > evaluate(const node &, context &) const; bool matches(const node *) const; void dump(); };
The actual xpath implementation. It expects an xpath in the constructor and this path must be UTF-8 encoded.
xpath
public member functionstemplate<typename NODE_TYPE> std::list< NODE_TYPE * > evaluate(const node & root) const;
evaluate returns a node_set. If you're only interested in zeep::xml::element
results, you should call the evaluate<element>() instantiation.
template<typename NODE_TYPE> std::list< NODE_TYPE * > evaluate(const node & root, context & ctxt) const;The second evaluate method is used for xpaths that contain variables.
bool matches(const node * n) const;Returns true if the n node matches the XPath.
void dump();debug routine, dumps the parse tree to stdout