34 #include <xercesc/parsers/SAXParser.hpp>
35 #include <xercesc/sax/HandlerBase.hpp>
36 #include <xercesc/sax/AttributeList.hpp>
37 #include <xercesc/util/PlatformUtils.hpp>
38 #include <xercesc/sax/SAXParseException.hpp>
39 #include <xercesc/sax/SAXException.hpp>
49 #ifdef CHECK_MEMORY_LEAKS
51 #endif // CHECK_MEMORY_LEAKS
72 throw ProcessError(
"Could not parse commandline options.");
91 if (!oc.
exists(
"configuration-file") || !oc.
isSet(
"configuration-file")) {
94 std::string path = oc.
getString(
"configuration-file");
100 XERCES_CPP_NAMESPACE::SAXParser parser;
101 parser.setValidationScheme(XERCES_CPP_NAMESPACE::SAXParser::Val_Auto);
102 parser.setDoNamespaces(
false);
103 parser.setDoSchema(
false);
107 parser.setDocumentHandler(&handler);
108 parser.setErrorHandler(&handler);
109 parser.parse(path.c_str());
111 throw ProcessError(
"Could not load configuration '" + path +
"'.");
113 }
catch (
const XERCES_CPP_NAMESPACE::XMLException& e) {