13#include "saxonc_export.h"
14#include "saxonc/SaxonProcessor.h"
15#include "saxonc/XsdSchema.h"
61 void setContextItem(
XdmItem *value);
67 void setOutputFile(
const char *outfile);
73 void setContextItemFromFile(
const char *filename);
90 void setLanguageVersion(
const char *
version);
103 void setStreaming(
bool option);
112 bool isStreaming()
const;
119 bool removeParameter(
const char *name);
131 void setProperty(
const char *name,
const char *value);
147 void clearParameters(
bool deleteValues =
false);
152 void clearProperties();
164 void setUpdating(
bool updating);
193 void setSchemaAware(
bool schemaAware);
195 bool isSchemaAware();
207 const char *query,
const char *encoding =
nullptr);
218 XdmValue *executeQueryToValue(
const char *infilename,
const char *query,
219 const char *encoding =
nullptr);
233 const char *encoding =
nullptr);
253 const char *runQueryToString();
262 void runQueryToFile();
281 void declareNamespace(
const char *prefix,
const char *uri);
295 std::map<std::string, XdmValue *> &getParameters();
301 std::map<std::string, std::string> &getProperties();
308 void setQueryFile(
const char *filename);
315 void setQueryContent(
const char *content);
322 void setQueryBaseURI(
const char *baseURI);
328 const char * getQueryBaseURI();
334 void setcwd(
const char *cwd);
341 const char * getcwd();
354 std::map<std::string, XdmValue *>
357 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
SAXONC_EXPORT char * getProperty(sxnc_property *properties, int propLen, const char *name)
Get a property from the list.
Definition SaxonCGlue.c:190
EXTERN_SAXONC SAXONC_EXPORT const char * version(sxnc_environment *environi, sxnc_processor *proc)
Get the Saxon version.
Definition SaxonCProcessor.c:6
SAXONC_EXPORT const char * executeQueryToString(sxnc_environment *environi, sxnc_processor *proc, char *cwd, sxnc_parameter *parameters, sxnc_property *properties, int parLen, int propLen)
Execute a query with the result returned as a string value (char pointer array).
Definition SaxonCProcessor.c:217
SAXONC_EXPORT void executeQueryToFile(sxnc_environment *environi, sxnc_processor *proc, char *cwd, char *outputfile, sxnc_parameter *parameters, sxnc_property *properties, int parLen, int propLen)
Execute a query with the result saved to file.
Definition SaxonCProcessor.c:181
SaxonApiException.
Definition SaxonApiException.h:25
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition SaxonProcessor.h:137
An XQueryProcessor represents a factory to compile, load and execute queries.
Definition XQueryProcessor.h:26
The class XdmItem represents an item in a sequence, as defined by the XDM data model.
Definition XdmItem.h:31
An XdmValue represents a value in the XDM data model.
Definition XdmValue.h:33
Definition XsdSchema.h:26