commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Francois Arcand <jfarc...@apache.org>
Subject [digester][patch] xml schema support. removal
Date Thu, 02 Oct 2003 18:47:08 GMT
Hi,

the current XML schema supports doesn't work with Xerces 2.3/2.4/2.5 
(only 2.1 finaly) (at least that's the case with Tomcat 5). The attached 
patch remove the current implementation. People interested to use the 
digester with schema/dtd should use instead:

                    digester.setFeature(
                        "http://apache.org/xml/features/validation/dynamic",
                        true);
                    digester.setFeature(
                        "http://apache.org/xml/features/validation/schema",
                        true);

when using Xerces. Other schema parser should have their own way to turn 
on validation. Those properties will be "standardized" in the next jaxp 
spec.

A solution may also be the addition of a method called 
digester.turnOnSchemaValidation() that contains the above feature, but 
has the limitation to only works with Xerces (anybody aware of a schema 
parser other that Xerces?)

Thanks,

-- Jeanfrancois

Mime
View raw message