Andy Clark wrote:
> document scanner passes the "complete" parameter to the DTD
> scanner. However, this is a problem because the code will not
> correctly handle pull parsing the DTD (internal or external
> subset) in the case where complete is false. So that code
> will have to be fixed.
Currently, the scanner can be used as a pull parser but the
DTD's internal and external subset will be read completely.
I'm working on a fix for to allow the DTD declarations to
also be pull parsed from the document scanner.
However, it occurs to me that you may want to have separate
"complete" values for document vs. DTD scanning when you are
scanning a document. In other words, a pull parser may want
to stop after each document event *but* read the DTD entirely
without stopping. OR... a pull parser may want to stop after
each document *and* DTD event.
This all leads me to think that we might need a change to
the XMLDocumentScanner interface. For example:
- scanDocument(boolean complete):boolean
+ scanDocument(boolean completeDoc, boolean completeDTD):boolean
But, again, this would then cascade up through the config
and the parser instances...
The other option is that the scanning of the DTD's internal
and external subset takes the same "complete" value as the
scanning of the document. And a feature could be used to set
the "completeDTD" value.
Whatcha think?
--
Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]