11#ifndef CYCLUS_SRC_RELAX_NG_VALIDATOR_H_
12#define CYCLUS_SRC_RELAX_NG_VALIDATOR_H_
14#include <glibmm/ustring.h>
17class _xmlRelaxNGParserCtxt;
18class _xmlRelaxNGValidCtxt;
47 bool Validate(
const xmlpp::Document* doc);
RelaxNGValidator()
constructor
void release_underlying()
free xml-related memory
~RelaxNGValidator()
destructor
void parse_memory(const Glib::ustring &contents)
parse a relaxng schema xml file
xmlRelaxNG * schema_
the schema
void parse_context(xmlRelaxNGParserCtxt *context)
parse a relaxng schema context
xmlRelaxNGValidCtxt * valid_context_
the validated context
bool Validate(const xmlpp::Document *doc)
validate an xml file agaisnt the given schema
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters
_xmlRelaxNGValidCtxt xmlRelaxNGValidCtxt
_xmlRelaxNGParserCtxt xmlRelaxNGParserCtxt