commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: [Jelly] handing invalid XML
Date Tue, 15 Oct 2002 10:10:25 GMT
From: "Morgan Delagrange" <mdelagra@yahoo.com>
> 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?

James
-------
http://radio.weblogs.com/0112098/

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message