You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Don Stewart <Do...@corizon.com> on 2004/10/07 13:41:57 UTC

ErrorListener on parse()

Does the setErrorListener() work on the file parse() call?

The code below throws an XMLEception but there are no messages in the
errorList Collection set by the setErrorListener() method.

 

                        XmlOptions xo = new XmlOptions();

                        ArrayList errorList = new ArrayList();

                        xo.setErrorListener(errorList);

                        try {

                                    jd = JarDocument.Factory.parse(file,
xo);

                        } catch (XmlException e) {

 

Regards

 

Don

don stewart| technical architect |email: donald.stewart@corizon.com |
web: www.corizon.com | office: +44(0)20 7539 6832 | mobile:
+44(0)7870553878

  <http://www.corizon.com>   

This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which they
are addressed. Any unauthorised dissemination or copying of this e-mail
or its attachments, and any use or disclosure of any information
contained in them, is strictly prohibited and may be illegal. If you
have received this e-mail in error, please notify the sender immediately
and then destroy any copies of it. Any views expressed in this e-mail
are those of the individual sender, except where the sender specifically
states them to be the views of Corizon.