I'm changing some stuff around in my code and trying to use a SAX2
parser instead of the DOM one I was using before. I've done this
before in a test program and a production one, but I'm getting some
unresolved externals when I shouldn't be. I am creating a DOM
document as a result of the XML that gets parsed on the front end.
Can mixing the SAX2 and DOM stuff cause some clashes? It shouldn't
because I'm doing it in a production program too. Anyway, this has me
scratching my head a bit.
I'm extending the DefaultHandler class. The doc says I can just
redefine the pieces I want unless I'm writing a new parser which I'm
not.
#include <xercesc/sax2/DefaultHandler.hpp>
...
class AuthNotifyHandler : public DefaultHandler {
private :
bool fSawErrors;
multimap<int, string> errors;
string elementData;
string stationCode, stationDate, stationTime, startCode, poNum,
msgID, track1, track2;
public :
void startDocument();
void endDocument();
void startElement(const XMLCh* const uri, const XMLCh* const
localname, const XMLCh* const qname, const Attributes& attrs);
void characters(const XMLCh *const chars, const unsigned int length);
void endElement(const XMLCh *const uri, const XMLCh *const
localname, const XMLCh *const qname);
void error(const SAXParseException &exc);
void fatalError(const SAXParseException&);
void warning(const SAXParseException &exc);
void resetErrors();
void addError(int code, string text);
bool hasErrors() { return errors.size() != 0; }
multimap<int, string> getErrors() { return errors; }
string getStationCode() { return stationCode; }
string getStationDate() { return stationDate; }
string getStationTime() { return stationTime; }
string getStartCode() { return startCode; }
string getPONum() { return poNum; }
string getTrack1() { return track1; }
string getTrack2() { return track2; }
string getMsgID() { return msgID; }
};
Definition not found for symbol
'__vft17AuthNotifyHandlerQ2_11xercesc_2_614EntityResolver'.
Definition not found for symbol
'__vft17AuthNotifyHandlerQ2_11xercesc_2_610DTDHandler'.
Definition not found for symbol
'__vft17AuthNotifyHandlerQ2_11xercesc_2_614ContentHandler'.
Definition not found for symbol
'__vft17AuthNotifyHandlerQ2_11xercesc_2_612ErrorHandler'.
Definition not found for symbol
'__vft17AuthNotifyHandlerQ2_11xercesc_2_614LexicalHandler'.
Definition not found for symbol
'__vft17AuthNotifyHandlerQ2_11xercesc_2_611DeclHandler'.
--
Kelly Beard