You would find out, for example, that
Before parsing A.xsd, the grammar pool held X,Y,Z
After parsing A, it held X,Y,Z,A,B,C.
So B,C were imported during the parse of A. You could save dependency trees
based on this information.
Jeff
----- Original Message -----
From: "Bob Foster" <bob@xxxxxxxxxx>
To: <xerces-j-user@xxxxxxxxxxxxxx>
Sent: Monday, December 06, 2004 1:38 PM
Subject: Re: Problem with grammar pool
> Jeff Greif wrote:
> > Another not-very-appealing possibility is to iterate over the grammar
pool
> > before and after parsing the document or root schema and look at the
change.
>
> I'm not sure what I would find out from this.
>
> > This assumes the grammar pool is not used by multiple threads.
>
> It is, but I have a way to lock it.
>
> Bob
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xxxxxxxxxxxxxx
> For additional commands, e-mail: xerces-j-user-help@xxxxxxxxxxxxxx
>
|