[jdom-interest] new sax-based utils

Joseph Bowbeer jozart at csi.com
Wed Sep 5 15:32:35 PDT 2001


Second try, below.


----- Original Message -----
From: "Joseph Bowbeer" <jozart at csi.com>
To: "Laurent Bihanic" <laurent.bihanic at atosorigin.com>
Cc: <jdom-interest at jdom.org>
Sent: Monday, September 03, 2001 2:15 PM
Subject: Re: [jdom-interest] new sax-based utils


Laurent,

Thanks for pointing this out.  I need to look at these more carefully, as
I'm only now getting up to speed on the transform interfaces.

I noticed that JDOMSource is missing LexicalHandler support.  You might want
to steal this from XMLReaderBase or XMLFilterBase (both in samples.sax).


----- Original Message -----
From: "Laurent Bihanic" <laurent.bihanic at atosorigin.com>
To: "Joseph Bowbeer" <jozart at csi.com>
Cc: <jdom-interest at jdom.org>
Sent: Monday, September 03, 2001 7:17 AM
Subject: Re: [jdom-interest] new sax-based utils

Joseph Bowbeer wrote:

> DocumentReader is useful when you have a JDOM Document that you want to
> hand-off to a consumer that accepts an XMLReader.  When the consumer calls
> the DocumentReader's parse method, the DocumentReader invokes SAXOutputter
> to transmit the source document as SAX events.
>
> (One could also imagine creating an InputSource wrapper for a JDOM
> Document.)

This wrapper already exists in org.jdom.transform.JDOMSource as a nested
class (JDOMInputSource) as well as the corresponding XMLReader
implementation (nested class DocumentReader).

Laurent






More information about the jdom-interest mailing list