[xsd-users] Schema caching example: enabe schema caching automatically

Boris Kolpackov boris at codesynthesis.com
Thu Sep 26 07:02:00 EDT 2013


Hi Ashish,

Ashish Singhal <ashish at ashishsinghal.com> writes:

> My concern is with having to change every invocation to use the wrapper -
> my application has hundreds of invocations using the non-cached parser.
> Tracking them all down will be difficult. Is there an approach that can
> help avoid this?

Hm. How many different parsing functions (i.e., root elements) do you 
have? If not too many, then you could suppress their generation (with,
for example, --root-element-none) and then provide your own 
implementations (which do caching) in their place. If you look at the
generated overloads that take DOMDocument, they are pretty simple.

Boris



More information about the xsd-users mailing list