Name

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

Synopsis

class XpathExpr
  :  (RefCountedWrappedObjectSernaApi::RefCountedWrappedObject) 
:
  # construct/copy/destruct
  __init__(const SString &, 
           const GroveNodeWithNamespace & = GroveNodeWithNamespace(0))

  # public member functions

  XpathValue eval(const GroveNode &) const

Description

XpathExpr construct/copy/destruct

  1. __init__(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.