#include <Validator.h>
◆ SchemaValidator() [1/2]
| openword::SchemaValidator::SchemaValidator |
( |
gsl::czstring |
xsdPath | ) |
|
|
explicit |
Loads an XSD schema for validation.
- Parameters
-
| xsdPath | Path to the .xsd file. |
◆ ~SchemaValidator()
| openword::SchemaValidator::~SchemaValidator |
( |
| ) |
|
◆ SchemaValidator() [2/2]
◆ isValid()
| bool openword::SchemaValidator::isValid |
( |
| ) |
const |
Checks if the schema was successfully loaded and parsed.
◆ operator=()
◆ validate()
| bool openword::SchemaValidator::validate |
( |
gsl::czstring |
xmlContent, |
|
|
std::string & |
outErrors |
|
) |
| const |
Validates an XML string against the loaded schema.
- Parameters
-
| xmlContent | The XML string to validate. |
| outErrors | A string to hold any validation error messages. |
- Returns
- true if valid, false if invalid.
The documentation for this class was generated from the following file:
- /home/runner/work/OpenWord/OpenWord/include/openword/Validator.h