13 #include "SaxonProcessor.h" 72 void setContextItem(
XdmItem * item);
77 void setcwd(
const char* cwd);
112 void setProperty(
const char * name,
const char * value);
127 #if CVERSION_API_NO >= 121 248 std::map<std::string,XdmValue*> parameters;
249 std::map<std::string,std::string> properties;
XPathProcessor()
Default constructor.
Definition: XPathProcessor.cpp:7
void declareNamespace(const char *prefix, const char *uri)
Declare a namespace binding as part of the static context for XPath expressions compiled using this X...
Definition: XPathProcessor.cpp:249
std::map< std::string, std::string > & getProperties()
Definition: XPathProcessor.cpp:424
const char * getErrorMessage(int i)
Get the ith error message if there are any error.
Definition: XPathProcessor.cpp:451
void setcwd(const char *cwd)
Definition: XPathProcessor.cpp:415
void importSchemaNamespace(const char *uri)
Import a schema namespace.
Definition: XPathProcessor.cpp:289
bool effectiveBooleanValue(const char *xpathStr)
Evaluate the XPath expression, returning the effective boolean value of the result.
Definition: XPathProcessor.cpp:320
void clearParameters(bool deleteValues=false)
Definition: XPathProcessor.cpp:394
XdmItem * evaluateSingle(const char *xpathStr)
Compile and evaluate an XPath expression. The result is expected to be a single XdmItem.
Definition: XPathProcessor.cpp:139
void setParameter(const char *name, XdmValue *value)
Definition: XPathProcessor.cpp:374
bool exceptionOccurred()
Definition: XPathProcessor.cpp:456
void setBackwardsCompatible(bool option)
Say whether XPath 1.0 backwards compatibility mode is to be used.
Definition: XPathProcessor.cpp:272
void setCaching(bool caching)
Say whether the compiler should maintain a cache of compiled expressions.
Definition: XPathProcessor.cpp:280
Definition: XdmValue.h:46
int exceptionCount()
Get number of errors reported during evaluation of the XPath.
Definition: XPathProcessor.cpp:439
std::map< std::string, XdmValue * > & getParameters()
Definition: XPathProcessor.cpp:419
void exceptionClear()
Clear any exception thrown.
Definition: XPathProcessor.cpp:429
Definition: SaxonProcessor.h:296
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:446
void setBaseURI(const char *uriStr)
Set the static base URI for XPath expressions compiled using this XPathCompiler.
Definition: XPathProcessor.cpp:299
Definition: XPathProcessor.h:26
void setProperty(const char *name, const char *value)
Set a property specific to the processor in use.
Definition: XPathProcessor.cpp:385
const char * checkException()
Check for exception thrown.
Definition: XPathProcessor.cpp:462
bool removeParameter(const char *name)
Definition: XPathProcessor.cpp:381
void setContextFile(const char *filename)
Set the context item from file.
Definition: XPathProcessor.cpp:242
void clearProperties()
Definition: XPathProcessor.cpp:410