CYCLUS
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cyclus::RelaxNGValidator Class Reference

Detailed Description

RelaxNGValidator.

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

xmlRelaxNGschema_
 
xmlRelaxNGValidCtxtvalid_context_
 

Constructor & Destructor Documentation

◆ RelaxNGValidator()

cyclus::RelaxNGValidator::RelaxNGValidator ( )

constructor

Definition at line 22 of file relax_ng_validator.cc.

◆ ~RelaxNGValidator()

cyclus::RelaxNGValidator::~RelaxNGValidator ( )

destructor

Definition at line 25 of file relax_ng_validator.cc.

Member Function Documentation

◆ parse_context()

void cyclus::RelaxNGValidator::parse_context ( xmlRelaxNGParserCtxt context)
protected

parse a relaxng schema context

Parameters
contextthe context

Definition at line 30 of file relax_ng_validator.cc.

◆ parse_memory()

void cyclus::RelaxNGValidator::parse_memory ( const Glib::ustring &  contents)

parse a relaxng schema xml file

Parameters
contentsthe contents of the xml file

Definition at line 39 of file relax_ng_validator.cc.

◆ release_underlying()

void cyclus::RelaxNGValidator::release_underlying ( )
protected

free xml-related memory

Definition at line 46 of file relax_ng_validator.cc.

◆ Validate()

bool cyclus::RelaxNGValidator::Validate ( const xmlpp::Document *  doc)

validate an xml file agaisnt the given schema

Parameters
docthe xml file document

Definition at line 59 of file relax_ng_validator.cc.

Member Data Documentation

◆ schema_

xmlRelaxNG* cyclus::RelaxNGValidator::schema_
protected

the schema

Definition at line 58 of file relax_ng_validator.h.

◆ valid_context_

xmlRelaxNGValidCtxt* cyclus::RelaxNGValidator::valid_context_
protected

the validated context

Definition at line 61 of file relax_ng_validator.h.


The documentation for this class was generated from the following files: