13#include "saxonc_export.h"
14#include "saxonc/SaxonProcessor.h"
68 void setcwd(
const char *cwd);
75 const char * getcwd();
88 void registerSchemaFromFile(
const char *xsd);
96 void registerSchemaFromString(
const char *schemaStr,
97 const char *systemID =
nullptr);
104 void registerSchemaFromNode(
XdmNode *node);
113 void exportSchema(
const char *fileName);
119 void setOutputFile(
const char *outputFile);
125 const char *getOutputFile();
133 void validate(
const char *sourceFile =
nullptr);
142 XdmNode *validateToNode(
const char *sourceFile =
nullptr);
150 void setSourceNode(
XdmNode *source);
160 XdmNode *getValidationReport();
176 bool removeParameter(
const char *name);
184 void setProperty(
const char *name,
const char *value);
194 void clearParameters(
bool deleteValues =
false);
199 void clearProperties();
212 std::map<std::string, XdmValue *> &getParameters();
217 std::map<std::string, std::string> &getProperties();
223 bool exceptionOccurred();
231 const char *checkException();
237 void exceptionClear();
246 const char *getErrorMessage();
254 const char *getErrorCode();
287 std::map<std::string, XdmValue *>
290 std::map<std::string, std::string>
SAXONC_EXPORT void setParameter(sxnc_parameter **parameters, int *parLen, int *parCap, const char *name, sxnc_value *value)
Set a parameter.
Definition SaxonCGlue.c:160
SAXONC_EXPORT int64_t getParameter(sxnc_parameter *parameters, int parLen, const char *name)
Get a parameter from the list.
Definition SaxonCGlue.c:136
SAXONC_EXPORT void setProperty(sxnc_property **properties, int *propLen, int *propCap, const char *name, const char *value)
Set a property.
Definition SaxonCGlue.c:186
SaxonApiException.
Definition SaxonApiException.h:24
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition SaxonProcessor.h:117
Definition SchemaValidator.h:26
SaxonProcessor * getSaxonProcessor()
Get the SaxonProcessor which created this SchemaValidator.
Definition SchemaValidator.h:275
int64_t getUnderlyingValidator()
Get the underlying Java object of the C++ schema validator.
Definition SchemaValidator.h:270
SchemaValidator & operator=(const SchemaValidator &other)
The copy assignment= operator.
The class XdmItem represents an item in a sequence, as defined by the XDM data model.
Definition XdmItem.h:31
This class represents a node in the XDM data model.
Definition XdmNode.h:57
An XdmValue represents a value in the XDM data model.
Definition XdmValue.h:43