commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: [Jelly] handing invalid XML
Date Tue, 15 Oct 2002 10:10:25 GMT
From: "Morgan Delagrange" <>
> I am preparing a change to the
> org.apache.commons.jelly.Jelly class that will allow
> clients to enable XML validation.  However I noticed
> that the XMLParser.warning(SAXException) method simply
> logs warnings without throwing the exception.  That
> means that whether or not validation succeeds, the
> script will continue to execute.
> Is that really the desired behaviour?  I would have
> assumed that a script would fail if it was not valid
> and validation was enabled.  Can/should I modify the
> XMLParser class so that warnings will result in a
> SAXException?

Sounds like a bug/oversight to me. If validation is on then it should fail.
I guess the validation flag needs to be a context thing?


Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts

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

View raw message