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

Ashish Singhal ashish at ashishsinghal.com
Thu Sep 26 07:25:59 EDT 2013


Unfortunately, there's hundreds of root elements as well.


On Thu, Sep 26, 2013 at 12:02 PM, Boris Kolpackov
<boris at codesynthesis.com>wrote:

> 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