Hi All,
XalanSourceTreeParserLiaison's parseXMLStream causes SIGABRT when an
invalid XML event is parsed. Is there any way to avoid this (I mean some
exception)?
Regards,
Amit Dang
Following is the portion of code:
mpTheLiaison = new XalanSourceTreeParserLiaison(mTheDOMSupport);
mTheDOMSupport.setParserLiaison(mpTheLiaison);
try
{
MemBufInputSource* pMemBufIS =
new MemBufInputSource((const XMLByte*)mlpXmlEvent,
strlen(mlpXmlEvent), "xEvent", false);
// Parse the document...
mpTheDocumentPtr = mpTheLiaison->parseXMLStream(*pMemBufIS);
}
catch(const XalanDOMException& toCatch)
{
cout << "Exception:" << toCatch.getExceptionCode() << "\n";
}