> 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)?
Yes, but you have to catch the right exceptions.
> }
> catch(const XalanDOMException& toCatch)
> {
> cout << "Exception:" << toCatch.getExceptionCode() << "\n";
> }
You need to catch the Xerces-C exception called SAXException for parsing
errors.
Dave
