I am trying to provide external entity resolution using my own resolver, subclassed from DOMEntityResolver. I need to return a DOMInputSource from resolveEntity. It seems that for Sax parsers there are some InputSources already supplied (like LocalFileInputSource), but there aren't any for DOM? I'm not entirely sure why they are different input sources in the first place, since the DOM parser is, in the end, still a SAX parser.
You can use the Wrapper4InputSource helper class: it takes an InputSource and exposes it as it were a DOMInputSource.
Alberto
Anyhow, my question is, are there any examples of simple local file input source subclasses for DOM parsers, or do I have to write one myself? Clearly there's a DOMInputSource *somewhere* that takes a local file, because if you don't overload the entity resolution, it still happens for local files - is there any way to use this built-in input source?
-- Nick
--------------------------------------------------------------------- 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]