5#include <libxml++/libxml++.h>
13#if LIBXMLXX_MAJOR_VERSION == 2
17 typedef xmlpp::Node::NodeSet
NodeSet;
23 parser_ =
new xmlpp::DomParser();
33 if (parser_ !=
NULL) {
36 parser_ =
new xmlpp::DomParser();
44 }
catch (
const std::exception&
ex) {
62 xmlpp::Document* doc = parser_->get_document();
66 #if LIBXMLXX_MAJOR_VERSION == 2
67 #if LIBXMLXX_MINOR_VERSION < 42
79 xmlpp::Element*
root = doc->get_root_node();
83 reinterpret_cast<xmlpp::Element*
>(*it)->remove_attribute(
"base",
"xml");
void parse_memory(const Glib::ustring &contents)
parse a relaxng schema xml file
For validating files received via IO.
void Validate(const std::stringstream &schema)
validates the file agaisnt a schema
virtual ~XMLParser()
destructor
void Init(const std::stringstream &input)
initializes a parser with an xml snippet
xmlpp::Document * Document()
Code providing rudimentary logging capability for the Cyclus core.
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
@ LEV_DEBUG5
debugging information - most verbose
xmlpp::Node::NodeSet NodeSet
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters
xmlpp::Node::const_NodeList const_NodeList