Hi, In order to know which element is buggy you can install your own stack keeping track of nesting of elements and insert the top of the stack out into the SAXParseException message if you want. I don't know how much is this accurate but it gives at least an idea which element was the last processed before an error occured. Did you install an ErroHandler to your SAX2 parser instance? If yes you can catch SAXParseException and inspect the line and column number and/or rethrow it again with updated information about the last element and catch it somewhere up in your application.
Cheers Radovan > -----Original Message----- > From: Alexander Knopov [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 19 March 2002 20:20 > To: [EMAIL PROTECTED] > Subject: How to get name from DefaultHandler::error > > > Hi, > > I'm using SAX2 interface of Xerces_C_1.6.0 library from my C++ program. Is > there any civilized way to get a name of element or attribute that caused > error during validation? > > Thanks > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]