xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Massari <amass...@progress.com>
Subject Re: External entity resolution
Date Fri, 16 Apr 2004 19:09:45 GMT
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.


>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?
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

View raw message