54 #include <xercesc/sax2/DefaultHandler.hpp> 55 using XERCES_CPP_NAMESPACE::DefaultHandler;
57 #include <xercesc/sax2/Attributes.hpp> 58 using XERCES_CPP_NAMESPACE::Attributes;
60 #include <xercesc/util/PlatformUtils.hpp> 61 using XERCES_CPP_NAMESPACE::XMLPlatformUtils;
63 #include <xercesc/util/XMLException.hpp> 64 using XERCES_CPP_NAMESPACE::XMLException;
66 #include <xercesc/util/XMLString.hpp> 67 using XERCES_CPP_NAMESPACE::XMLString;
80 DIAG_Msg(3,
"Initializing XML: ...");
82 XMLPlatformUtils::Initialize();
84 catch (
const XMLException& x) {
85 DIAG_Throw(
"Unable to initialize XML processor: " 86 << XMLString::transcode(x.getMessage()));
95 XMLPlatformUtils::Terminate();
104 const XMLCh*
const xmlStr = attributes.getValue((
unsigned int) i);
110 getAttr(
const Attributes& attributes,
const XMLCh*
const name)
112 const XMLCh*
const xmlStr = attributes.getValue(name);
static std::string make_string(const XMLCh *const xmlStr)
string getAttr(const Attributes &attributes, int i)
#define DIAG_Msg(level,...)