13 #include "SaxonProcessor.h"
72 void setContextItem(
XdmItem * item);
77 void setcwd(
const char* cwd);
113 void setProperty(
const char * name,
const char * value);
203 std::map<std::string,XdmValue*> parameters;
204 std::map<std::string,std::string> properties;
XPathProcessor()
Default constructor.
Definition: XPathProcessor.cpp:7
void declareNamespace(const char *prefix, const char *uri)
Definition: XPathProcessor.cpp:242
std::map< std::string, std::string > & getProperties()
Definition: XPathProcessor.cpp:387
const char * getErrorMessage(int i)
Get the ith error message if there are any error.
Definition: XPathProcessor.cpp:414
void setcwd(const char *cwd)
Definition: XPathProcessor.cpp:378
bool effectiveBooleanValue(const char *xpathStr)
Evaluate the XPath expression, returning the effective boolean value of the result.
Definition: XPathProcessor.cpp:283
void clearParameters(bool deleteValues=false)
Definition: XPathProcessor.cpp:357
XdmItem * evaluateSingle(const char *xpathStr)
Compile and evaluate an XPath expression. The result is expected to be a single XdmItem.
Definition: XPathProcessor.cpp:132
void setParameter(const char *name, XdmValue *value)
Definition: XPathProcessor.cpp:337
bool exceptionOccurred()
Definition: XPathProcessor.cpp:419
Definition: XdmValue.h:44
int exceptionCount()
Get number of errors reported during evaluation of the XPath.
Definition: XPathProcessor.cpp:402
std::map< std::string, XdmValue * > & getParameters()
Definition: XPathProcessor.cpp:382
void exceptionClear()
Clear any exception thrown.
Definition: XPathProcessor.cpp:392
Definition: SaxonProcessor.h:290
XdmValue * evaluate(const char *xpathStr)
Compile and evaluate an XPath expression.
Definition: XPathProcessor.cpp:43
const char * getErrorCode(int i)
Get the ith error code if there are any error.
Definition: XPathProcessor.cpp:409
void setBaseURI(const char *uriStr)
Set the static base URI for XPath expressions compiled using this XPathCompiler.
Definition: XPathProcessor.cpp:262
Definition: XPathProcessor.h:26
void setProperty(const char *name, const char *value)
Definition: XPathProcessor.cpp:348
const char * checkException()
Check for exception thrown.
Definition: XPathProcessor.cpp:425
bool removeParameter(const char *name)
Definition: XPathProcessor.cpp:344
void setContextFile(const char *filename)
Set the context item from file.
Definition: XPathProcessor.cpp:234
void clearProperties()
Definition: XPathProcessor.cpp:373