[jdom-interest] SAXOutputter

Laurent Bihanic laurent.bihanic at atosorigin.com
Tue Apr 20 08:58:44 PDT 2004


Chris B. wrote:
> Like if I have....
>    Element e1;
>    Element e2;
>    ContentHandler ch;
>    SAXOutputter so = new SAXOutputter(ch);
>    ch.startDocument();
>    ch.startElement("", "package", "", ..);
>    so.output(e1);
>    so.output(e2);
>    ch.endElement("", package", "", ...);
>    ch.endDocument();

I now understand your use case better. Indeed in your case, inheriting 
SAXOutputter makes no sense.

Laurent



More information about the jdom-interest mailing list