Name

XpathExpr — Builds XPath expression and evaluates it in the specified context.

Synopsis

class XpathExpr
  :  : public RefCountedWrappedObjectSernaApi::RefCountedWrappedObject
 {
public:
  // construct/copy/destruct
  XpathExpr(const SString &, 
            const GroveNodeWithNamespace & = GroveNodeWithNamespace(0));

  // public member functions

  XpathValue eval(const GroveNode &) const;
};

Description

XpathExpr construct/copy/destruct

  1. XpathExpr(const SString & expr,           const GroveNodeWithNamespace & nsResolver = GroveNodeWithNamespace(0));

    Constructs XPath expression. If you use namespaces, you must also supply nsResolver for resolution of namespace prefixes within expression.


XpathExpr public member functions

  1. XpathValue eval(const GroveNode & context) const;

    Evaluate an expression in context, and return the value.