13#include "saxonc_export.h"
14#include "saxonc/SaxonProcessor.h"
69 void setcwd(
const char *cwd);
76 const char * getcwd();
90 void registerSchemaFromFile(
const char *xsd);
99 void registerSchemaFromString(
const char *schemaStr,
100 const char *systemID =
nullptr);
108 void registerSchemaFromNode(
XdmNode *node);
117 void exportSchema(
const char *fileName);
123 void setOutputFile(
const char *outputFile);
129 const char *getOutputFile();
137 void validate(
const char *sourceFile =
nullptr);
145 void validateFromString(
const char *content);
154 XdmNode *validateToNode(
const char *sourceFile =
nullptr);
162 void setSourceNode(
XdmNode *source);
172 XdmNode *getValidationReport();
188 bool removeParameter(
const char *name);
196 void setProperty(
const char *name,
const char *value);
206 void clearParameters(
bool deleteValues =
false);
211 void clearProperties();
224 std::map<std::string, XdmValue *> &getParameters();
229 std::map<std::string, std::string> &getProperties();
256 void setUseXsiSchemaLocation(
bool recognize);
258 bool isUseXsiSchemaLocation();
260 void setDocumentElementName(
const char * eqname);
262 const char * getDocumentElementName();
264 void validateMultiple(
const char **sourceFile);
266 bool isExpandAttributeDefaults();
268 void setExpandAttributeDefaults(
bool expand);
285 SchemaValidator(std::string cwd, int64_t p, int64_t schemaValidatorObject);
289 int64_t cppV, procRef;
293 std::map<std::string, XdmValue *>
296 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:202
SAXONC_EXPORT int64_t getParameter(sxnc_parameter *parameters, int parLen, const char *name)
Get a parameter from the list.
Definition SaxonCGlue.c:178
SAXONC_EXPORT void setProperty(sxnc_property **properties, int *propLen, int *propCap, const char *name, const char *value)
Set a property.
Definition SaxonCGlue.c:228
A document builder holds properties controlling how a Saxon document tree should be built,...
Definition DocumentBuilder.h:35
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition SaxonProcessor.h:137
Definition SchemaValidator.h:27
bool isLax()
Ask whether validation is to be in lax mode.
int64_t getUnderlyingValidator()
Get the underlying Java object of the C++ schema validator.
Definition SchemaValidator.h:272
SchemaValidator & operator=(const SchemaValidator &other)
The copy assignment= operator.
XsdSchema * getSchema()
Get the schema used by this schema validator.
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:33
Definition XsdSchema.h:26