26 #include <xercesc/util/PlatformUtils.hpp> 27 #include <xercesc/sax2/SAX2XMLReader.hpp> 34 namespace XERCES = XERCES_CPP_NAMESPACE;
38 IsisXMLIgnore::IsisXMLIgnore(
char *PencodingName,
39 bool &PexpandNamespaces,
40 XERCES::SAX2XMLReader* &Pparser,
41 const std::string Pignore) {
43 encodingName = PencodingName;
44 expandNamespaces = PexpandNamespaces;
48 prevDocHandler = parser->getContentHandler();
49 prevErrorHandler = parser->getErrorHandler();
51 parser->setContentHandler(
this);
52 parser->setErrorHandler(
this);
57 IsisXMLIgnore::~IsisXMLIgnore() {}
60 void IsisXMLIgnore::characters(
const XMLCh *
const chars,
61 const XMLSize_t length) {
64 void IsisXMLIgnore::endElement(
const XMLCh *
const uri,
65 const XMLCh *
const localname,
66 const XMLCh *
const qname) {
68 if((
string)XERCES::XMLString::transcode(localname) == ignore) {
69 parser->setContentHandler(prevDocHandler);
70 parser->setErrorHandler(prevErrorHandler);
Namespace for the standard library.