[EMAIL PROTECTED] wrote:
>
> Xalan relies on Xerces -- or another JAXP-compliant parser -- to parse the
> input file.
> If that parser attempts to recover, we recover; if it doesn't, we don't.
>
> Very few will. An ill-formed XML file is simply Not An XML File. I'd
> suggest you try to get whoever's running your server to rewrite their HTML
> error page as XHTML, which would parse successfully.
Thanks Joseph, but I think it would not make not any sense to parse an
error reporting xhtml-page,
when a dtd or xsl is expected. What I want is to put the data to the
exception
so the caller of my function can show the error message to the user.
It would be more helpful for integrators when displaying the right error
(page not found, host does
not exist or connection refused) instead of a parsing error.
Ideas?
--
_,
Regards, (_
,_)ven Hansen.
+----------------------------------------------------------+
| Sven Hansen Celo Communications GmbH |
| Dipl.-Chem. a Gemplus Company |
| Senior Software Engineer Weissenfelser Strasse 46a |
| mailto:[EMAIL PROTECTED] D-06217 Merseburg |
| http://www.gemplus.com/ |
| Phone: +49 (0)3461/3318-24 Fax: +49 (0)3461/415072 |
+----------------------------------------------------------+
Unix _IS_ user friendly -
it's just selective about who its friends are !