After a little testing with the DOMParser::parse's reuseGrammer flag I have
problems... Our problem is a failure to catch some validation errors after
the first call, when reusing rammer. Our schema's are fairly large > 150
complex types and > 100 simple types. Each instance that we parse requires
a small subset of the types defined in our schemas. Will the "reused
grammar" be the entire grammar or just the subset used in the initial parse?
Jim
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 13, 2001 11:57 AM
> To: [EMAIL PROTECTED]
> Subject: Re: "Compiled" Schemas
>
>
> "Murphy, James" <[EMAIL PROTECTED]> writes:
>
> > Tinny, thanks for the replay... I'm not clear on your
> statement below:
> >
> > > // Any grammar that is specified in anotherXmlFile is IGNORED.
> > > // AND there cannot be any internal subset in
> anotherXmlFile..
> > > parser.parse(anotherXmlFile, true);
> >
> > what do you mean by an "internal subset".
>
> The internal subset refers to the DOCTYPE.
>
> <DOCTYPE foo PUBLIC "-/foo" SYSTEM "foo.dtd [
> <!ENTITY foo_ent "bar">
> ]>
>
> the internal subset is the part between the [ ... ]. The external
> subset is whatever lies in foo.dtd and any documents it references.
>
> HTH,
> jas.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]