scram::xml::Validator
RelaxNG validator.
#include <xml.h>
Public Functions
| Name | |
|---|---|
| Validator(const std::string & rng_file) | |
| void | validate(const Document & doc)<br>Validates XML DOM documents against the schema. |
Public Functions Documentation
function Validator
cpp
explicit Validator(
const std::string & rng_file
)Parameters:
- rng_file The path to the schema file.
Exceptions:
- ParseError RNG file parsing has failed.
- LogicError The XML library functions have failed internally.
function validate
cpp
inline void validate(
const Document & doc
)Validates XML DOM documents against the schema.
Parameters:
- doc The initialized XML DOM document.
Exceptions:
- ValidityError The document failed schema validation.
Updated on 2025-11-11 at 16:51:08 +0000
