CYCLUS
|
A helper class to hold xml file data and provide automatic validation.
Definition at line 16 of file xml_parser.h.
#include <xml_parser.h>
Public Member Functions | |
xmlpp::Document * | Document () |
void | Init (const std::stringstream &input) |
void | Init (const std::string &input) |
void | Validate (const std::stringstream &schema) |
XMLParser () | |
virtual | ~XMLParser () |
cyclus::XMLParser::XMLParser | ( | ) |
constructor
Definition at line 14 of file xml_parser.cc.
|
virtual |
destructor
Definition at line 19 of file xml_parser.cc.
xmlpp::Document * cyclus::XMLParser::Document | ( | ) |
Definition at line 53 of file xml_parser.cc.
void cyclus::XMLParser::Init | ( | const std::stringstream & | input | ) |
initializes a parser with an xml snippet
input | an xml snippet to be used as input |
Definition at line 41 of file xml_parser.cc.
void cyclus::XMLParser::Init | ( | const std::string & | input | ) |
Definition at line 24 of file xml_parser.cc.
void cyclus::XMLParser::Validate | ( | const std::stringstream & | schema | ) |
validates the file agaisnt a schema
schema | the schema to validate agaisnt |
Definition at line 46 of file xml_parser.cc.