How do I precompile or cache a schema using Xerces?
You need to be using a version of Xerces 2 that supports grammar pools. This feature was introduced with Xerces 2.6. It is recommended to always use the most current version of Xerces, many installations ship with older versions that do not have the schema caching ability. Information about XML Grammar Pools can be found on the Apache.org website. STAR also has some sample code that shows how to handle this for STAR BODs. Note this is only a sample and will need to be modified for your particular environment.