From: "Morgan Delagrange" <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>