You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/03/08 11:28:50 UTC

DO NOT REPLY [Bug 32791] - xmlvalidate task fails with multiple files.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32791>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32791





------- Additional Comments From homer.pichler@gmx.net  2006-03-08 10:28 -------
There is a performance problem when validating a lots of XML files against
a large schema that can be fixed with a xerces2 "grammar-pool". See
http://www-128.ibm.com/developerworks/xml/library/x-perfap3.html#N1017A

I took the CVS source of XMLValidate.java, removed the XmlConstants lookup
to make it compilable under ant 1.6.5 and added a grammar pool. This did
speed up our validation of 6500 files from 5 minutes to 1 minute and allows
us to stay with ant 1.6.5 and replacing only XMLValidate in ant-nodeps.jar.
Perhaps other people find it useful and the cache becomes an official
(perhaps optional) feature of the next ant release.

regards,
Michael Pichler

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org