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:  [EMAIL PROTECTED]



Benson Cheng <[EMAIL PROTECTED]> on 02/28/2001 11:44:55 AM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Reply via email to