Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IXpathExpression::compileExpression ( const P6WCHAR pExpression,
P6UINT32  length,
p6IXMLCompile pContext 
)
pure virtual

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
SuccessP6R::eOk 
FailureP6R::eNotInitializedgA successful call to intialize() must be made before calling this funciton.
P6R::eInvalidArgpExpression is NULL or length is zero.
P6R::eNotFoundUnrecognized expression.