12 #include "SaxonProcessor.h"
48 void setcwd(
const char* cwd);
57 void registerSchemaFromString(
const char * schemaStr);
71 void validate(
const char * sourceFile = NULL);
117 void setProperty(
const char * name,
const char * value);
186 std::string outputFile;
187 std::map<std::string,XdmValue*> parameters;
188 std::map<std::string,std::string> properties;
std::map< std::string, std::string > & getProperties()
Definition: SchemaValidator.cpp:468
bool exceptionOccurred()
Definition: SchemaValidator.cpp:399
void setParameter(const char *name, XdmValue *value)
Definition: SchemaValidator.cpp:423
SchemaValidator()
Default constructor.
Definition: SchemaValidator.cpp:8
std::map< std::string, XdmValue * > & getParameters()
Definition: SchemaValidator.cpp:463
void registerSchemaFromFile(const char *xsd)
Register the schema from file name.
Definition: SchemaValidator.cpp:72
Definition: SchemaValidator.h:26
Definition: XdmValue.h:44
bool removeParameter(const char *name)
Definition: SchemaValidator.cpp:430
void setProperty(const char *name, const char *value)
Definition: SchemaValidator.cpp:434
XdmNode * validateToNode(const char *sourceFile=NULL)
Validate an instance document supplied as a Source object.
Definition: SchemaValidator.cpp:301
const char * getErrorCode(int i)
Get the i'th error code if there are any error.
Definition: SchemaValidator.cpp:389
const char * checkException()
Check for exception thrown.
Definition: SchemaValidator.cpp:403
void validate(const char *sourceFile=NULL)
Definition: SchemaValidator.cpp:225
void clearProperties()
Definition: SchemaValidator.cpp:459
Definition: SaxonProcessor.h:290
void clearParameters(bool deleteValues=false)
Definition: SchemaValidator.cpp:443
XdmNode * getValidationReport()
Get the Validation report.
Definition: SchemaValidator.cpp:52
void exceptionClear()
Clear any exception thrown.
Definition: SchemaValidator.cpp:381
void setOutputFile(const char *outputFile)
Definition: SchemaValidator.cpp:48
void setSourceNode(XdmNode *source)
Set the source node for validation.
Definition: SchemaValidator.cpp:414
const char * getErrorMessage(int i)
Get the ith error message if there are any validation errors.
Definition: SchemaValidator.cpp:394
void setcwd(const char *cwd)
Set the Current working Directory.
Definition: SchemaValidator.cpp:42
int exceptionCount()
Get number of errors during validation of the source against the schema.
Definition: SchemaValidator.cpp:407