cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Gaffga" <>
Subject [C2] Problem: Checking XML before including it (XSPUtil.include)
Date Mon, 23 Jul 2001 15:46:46 GMT
I have some XML stored in the database an want to include in
in my page. Im using the following code in my XSP-page:

try {
     __is, this.contentHandler, newParser);
} catch (Exception e) {
   XML-Error XML: <xsp:expr>e.getMessage()</xsp:expr>

that work's fine if the XML is wellformed, but if it's not, it's the problem
that not
just the error message is outputted but also all XML that has been processed
before the
Error occured.

How can I check the XML before?
I tried to start the parser with no conumer but that throws an exception
every time


Is the a dummy consumer? something like dev/null ?

Christoph Gaffga

P.S.: It's no performence Problem for my Application if the XML is processed

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message