Compile a general XPath expression that would normally be used in XSLT into an XPath expression tree.
The compiled results become part of the state of the p6IXpathExpression object and can be evaluated against any DOM tree (built from XML or JSON) by calling the eval() method below. Thus an expression can be compiled once and evaluated multiple times against the same or different trees. This method can be called multiple times. Each new call removes the last compiled pattern or expression.
- Parameters
-
pExpression | [ in ] Caller uses to pass in the XML data to parse into a DOM tree |
length | [ in ] Length of the string in pExpression. |
pContext | [ in ] Can be NULL, the XML context that the XPath expression appears in. |
- Returns
Success | P6R::eOk | |
Failure | P6R::eNotInitializedg | A successful call to intialize() must be made before calling this funciton. |
P6R::eInvalidArg | pExpression is NULL or length is zero. |
P6R::eNotFound | Unrecognized expression. |