13#include "SaxonProcessor.h"
24enum class UnprefixedElementMatchingPolicy {
33 DEFAULT_NAMESPACE = 0,
57 DEFAULT_NAMESPACE_OR_NONE = 2
136 void setcwd(
const char *cwd);
151 const char *encoding =
nullptr);
181 void setProperty(
const char *name,
const char *value);
264 return static_cast<UnprefixedElementMatchingPolicy
>(n);
367 void createException(
const char *message =
nullptr);
377 std::map<std::string, XdmValue *>
380 std::map<std::string, std::string>
385 UnprefixedElementMatchingPolicy unprefixedElementPolicy;
Definition SaxonApiException.h:23
Definition SaxonProcessor.h:117
Definition XPathProcessor.h:63
UnprefixedElementMatchingPolicy convertEnumPolicy(int n)
Definition XPathProcessor.h:263
void setContextItem(XdmItem *item)
Definition XPathProcessor.cpp:189
std::map< std::string, XdmValue * > & getParameters()
Definition XPathProcessor.cpp:403
bool exceptionOccurred()
Definition XPathProcessor.cpp:438
SaxonApiException * getException()
Get the SaxonApiException object created when we have an error.
Definition XPathProcessor.cpp:436
const char * getBaseURI()
Definition XPathProcessor.cpp:300
bool removeParameter(const char *name)
Definition XPathProcessor.cpp:358
bool effectiveBooleanValue(const char *xpathStr, const char *encoding=nullptr)
Definition XPathProcessor.cpp:309
void setContextFile(const char *filename)
Definition XPathProcessor.cpp:204
void setBackwardsCompatible(bool option)
Say whether XPath 1.0 backwards compatibility mode is to be used.
Definition XPathProcessor.cpp:258
const char * getErrorMessage()
Get the first error message if there are any errors.
Definition XPathProcessor.cpp:429
UnprefixedElementMatchingPolicy getUnprefixedElementMatchingPolicy()
! Get the policy for matching unprefixed element names in XPath expressions
Definition XPathProcessor.cpp:225
void setParameter(const char *name, XdmValue *value, bool withParam=true)
Definition XPathProcessor.cpp:342
void setBaseURI(const char *uriStr)
Definition XPathProcessor.cpp:290
void clearProperties()
Definition XPathProcessor.cpp:399
void setcwd(const char *cwd)
Definition XPathProcessor.cpp:401
void exceptionClear()
Clear any exception thrown.
Definition XPathProcessor.cpp:413
XdmValue * getParameter(const char *name, bool withParam=true)
Definition XPathProcessor.cpp:333
void setLanguageVersion(const char *version)
Definition XPathProcessor.cpp:266
XdmValue * evaluate(const char *xpathStr, const char *encoding=nullptr)
Compile and evaluate an XPath expression.
Definition XPathProcessor.cpp:106
void setProperty(const char *name, const char *value)
Set a property specific to the processor in use.
Definition XPathProcessor.cpp:362
void declareVariable(const char *name)
Definition XPathProcessor.cpp:248
const char * getErrorCode()
Get the first error code if there are any errors.
Definition XPathProcessor.cpp:422
XdmItem * evaluateSingle(const char *xpathStr, const char *encoding=nullptr)
Definition XPathProcessor.cpp:134
void setCaching(bool caching)
Say whether the compiler should maintain a cache of compiled expressions.
Definition XPathProcessor.cpp:274
std::map< std::string, std::string > & getProperties()
Definition XPathProcessor.cpp:408
void clearParameters(bool deleteValues=false)
Definition XPathProcessor.cpp:381
void setUnprefixedElementMatchingPolicy(UnprefixedElementMatchingPolicy policy)
Set the policy for matching unprefixed element names in XPath expressions.
Definition XPathProcessor.cpp:213
void declareNamespace(const char *prefix, const char *uri)
Definition XPathProcessor.cpp:235
XPathProcessor()
Default constructor.
Definition XPathProcessor.cpp:17
void importSchemaNamespace(const char *uri)
Import a schema namespace.
Definition XPathProcessor.cpp:282