12 #include "SaxonProcessor.h" 48 void setcwd(
const char* cwd);
57 void registerSchemaFromString(
const char * schemaStr);
71 void validate(
const char * sourceFile = NULL);
118 void setProperty(
const char * name,
const char * value);
200 std::string outputFile;
201 std::map<std::string,XdmValue*> parameters;
202 std::map<std::string,std::string> properties;
std::map< std::string, std::string > & getProperties()
Definition: SchemaValidator.cpp:478
bool exceptionOccurred()
Definition: SchemaValidator.cpp:409
void setLax(bool l)
The validation mode may be either strict or lax.
Definition: SchemaValidator.h:188
void setParameter(const char *name, XdmValue *value)
Definition: SchemaValidator.cpp:433
SchemaValidator()
Default constructor.
Definition: SchemaValidator.cpp:8
std::map< std::string, XdmValue * > & getParameters()
Definition: SchemaValidator.cpp:473
void registerSchemaFromFile(const char *xsd)
Register the schema from file name.
Definition: SchemaValidator.cpp:72
Definition: SchemaValidator.h:26
Definition: XdmValue.h:46
bool removeParameter(const char *name)
Definition: SchemaValidator.cpp:440
void setProperty(const char *name, const char *value)
Definition: SchemaValidator.cpp:444
XdmNode * validateToNode(const char *sourceFile=NULL)
Validate an instance document supplied as a Source object.
Definition: SchemaValidator.cpp:311
const char * getErrorCode(int i)
Get the i'th error code if there are any error.
Definition: SchemaValidator.cpp:399
const char * checkException()
Check for exception thrown.
Definition: SchemaValidator.cpp:413
void validate(const char *sourceFile=NULL)
Definition: SchemaValidator.cpp:225
void clearProperties()
Definition: SchemaValidator.cpp:469
Definition: SaxonProcessor.h:296
void clearParameters(bool deleteValues=false)
Definition: SchemaValidator.cpp:453
XdmNode * getValidationReport()
Get the Validation report.
Definition: SchemaValidator.cpp:52
void exceptionClear()
Clear any exception thrown.
Definition: SchemaValidator.cpp:391
void setOutputFile(const char *outputFile)
Definition: SchemaValidator.cpp:48
void setSourceNode(XdmNode *source)
Set the source node for validation.
Definition: SchemaValidator.cpp:424
const char * getErrorMessage(int i)
Get the ith error message if there are any validation errors.
Definition: SchemaValidator.cpp:404
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:417