![]() |
CYCLUS
|
This class provides a simple interface to validate xml documents agaisnt a given RelaxNG schema.
Definition at line 33 of file relax_ng_validator.h.
#include <relax_ng_validator.h>
Public Member Functions | |
| void | parse_memory (const Glib::ustring &contents) |
| RelaxNGValidator () | |
| bool | Validate (const xmlpp::Document *doc) |
| ~RelaxNGValidator () | |
Protected Member Functions | |
| void | parse_context (xmlRelaxNGParserCtxt *context) |
| void | release_underlying () |
Protected Attributes | |
| xmlRelaxNG * | schema_ |
| xmlRelaxNGValidCtxt * | valid_context_ |
| cyclus::RelaxNGValidator::RelaxNGValidator | ( | ) |
constructor
Definition at line 22 of file relax_ng_validator.cc.
| cyclus::RelaxNGValidator::~RelaxNGValidator | ( | ) |
destructor
Definition at line 25 of file relax_ng_validator.cc.
|
protected |
parse a relaxng schema context
| context | the context |
Definition at line 30 of file relax_ng_validator.cc.
| void cyclus::RelaxNGValidator::parse_memory | ( | const Glib::ustring & | contents | ) |
parse a relaxng schema xml file
| contents | the contents of the xml file |
Definition at line 39 of file relax_ng_validator.cc.
|
protected |
free xml-related memory
Definition at line 46 of file relax_ng_validator.cc.
| bool cyclus::RelaxNGValidator::Validate | ( | const xmlpp::Document * | doc | ) |
validate an xml file agaisnt the given schema
| doc | the xml file document |
Definition at line 59 of file relax_ng_validator.cc.
|
protected |
the schema
Definition at line 58 of file relax_ng_validator.h.
|
protected |
the validated context
Definition at line 61 of file relax_ng_validator.h.