You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by ne...@ca.ibm.com on 2001/03/01 16:37:09 UTC
Re: How to reuse a schema
Hi Benson,
The short answer is no; wait for Xerces 2, which should support grammar
caching. Some folks have reported success by storing their schema as a
byteArray, then using a custom EntityResolver to read from this array
instead of from the disk file. It still will be reparsed of course, but at
least this saves the overhead of accessing the disk.
Hope that helps,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone: 416-448-3519, T/L 778-3519
E-mail: neilg@ca.ibm.com
Benson Cheng <Be...@viacore.net> on 02/28/2001 11:44:55 AM
Please respond to xerces-j-user@xml.apache.org
To: "'xerces-j-user@xml.apache.org'" <xe...@xml.apache.org>
cc:
Subject: How to reuse a schema
I am using the same schema again and again to validating some xml file, is
there a way to create a scheam or grammer object once and keep reuse it to
validate my xml files?
Thanks,
Benson.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org