On Apr 16, 2004, at 3:09 PM, Alberto Massari wrote:
At 15.03 16/04/2004 -0400, Nick Bastin wrote: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.
Found that, thanks - works great. Any reason why we can't just unify the InputSources between DOM and SAX, so we don't have to go through the Wrapper classes?
-- Nick
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]