Skip to content

scram::xml::Validator

RelaxNG validator.

#include <xml.h>

Public Functions

Name
Validator(const std::string & rng_file)
voidvalidate(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:

function validate

cpp
inline void validate(
    const Document & doc
)

Validates XML DOM documents against the schema.

Parameters:

  • doc The initialized XML DOM document.

Exceptions:


Updated on 2025-11-11 at 16:51:08 +0000