Sorry I wasn't clear...by "exception", I meant Xerces throws me a
SAXParseException through the callback error().

You mentioned
 and do what you want with it, including looking at some field
 somewhere that contains the name of the last or next element seen.

Could you be more specific please (or point me to some doc), I'm not sure how to make good use out of SAXParseException and I don't want to parse its textual message.


This is a simple matter of writing the code. There's nothing in SAX that will do this for you. You need to design the appropriate data structures and algorithms to hold onto the information you need and use it when appropriate.
--


+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|           Processing XML with Java (Addison-Wesley, 2002)          |
|              http://www.cafeconleche.org/books/xmljava             |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to