xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Clark <an...@apache.org>
Subject Re: skipping DTD.....
Date Wed, 22 Mar 2000 18:25:12 GMT
Andrew Cheng wrote:
> i was wondering if there is a way around needing the DTD while parsing
> an xml document......

[Q] Do your documents have DOCTYPE lines?

If they do, then the parser will read the file, even if not
validating. Check the documentation for more information on
the settings and behavior of the parser.

Perhaps you could write an EntityResolver that caches DTD
documents that are resolved and then just returns an input
source wrapped around the memory buffer each time that it's
requested. You would need to write the caching entity
resolver, the caching mechanism, and decide how you're
going to identify DTD entities and not other entities --
perhaps those system identifiers that end in ".dtd"...

-- 
Andy Clark * IBM, JTC - Silicon Valley * andyc@apache.org

Mime
View raw message