Hi,

On Fri, Feb 27, 2009 at 1:06 AM, Jonathan Koren <jonat...@soe.ucsc.edu> wrote:
> Actually, if ParsingReader had some sort of mode where it spat out the xml
> directly instead of (indirectly) using WriteOutContentHandler to convert
> everything to plain text, then one could whatever xml parser, including an
> xml to text converter, on the read side.  As it is, it seems like
> ParsingReader is being just a little too smart.

The main purpose of ParsingReader is to be a Reader, i.e. to produce a
stream of characters.

If you want to see the SAX events, you can just use the Parser
interface directly:

    ContentHandler handler = new MyCustomContentHandler();
    new AutoDetectParser().parse(..., handler, ...);

BR,

Jukka Zitting

Reply via email to