6 #include <xercesc/util/XMLString.hpp> 19 const XMLCh*
const name,
20 const XMLCh*
const qname,
22 char* strx = XMLString::transcode(
name);
26 for (
unsigned int i = 0;
i < atts.getLength(); ++
i) {
27 char* aname = XMLString::transcode(atts.getLocalName(
i));
28 char*
value = XMLString::transcode(atts.getValue(
i));
36 dom_.addEdge(parent_.back(), nm, al);
39 parent_.emplace_back(nm);
49 char*
id = XMLString::transcode(
e.getSystemId());
50 char* message = XMLString::transcode(
e.getMessage());
51 cerr <<
"\nError at file " <<
id <<
", line " <<
e.getLineNumber() <<
", char " <<
e.getColumnNumber()
52 <<
"\n Message: " << message << endl;
XERCES_CPP_NAMESPACE::SAXParseException SAXParseException
void endElement(const XMLCh *uri, const XMLCh *name, const XMLCh *qname) override
const TinyDom & dom() const
std::map< AttName, AttValue > AttList
XERCES_CPP_NAMESPACE::Attributes Attributes
void error(const SAXParseException &e) override
void startElement(const XMLCh *uri, const XMLCh *localname, const XMLCh *qname, const Attributes &attrs) override