[jdom-interest] Getting String from a Document

Elliotte Rusty Harold elharo at metalab.unc.edu
Wed Jun 14 19:37:30 PDT 2000

At 9:39 AM +0000 6/14/00, jon.a.gudmundsson at decode.is wrote:
>Hi all,
>I am using beta 4 to process and create XML files. My problem is that I am
>creating a stand alone class that will create XML from some parameters and
>I want the member functions to return a String object containing the XML,
>as the class doesn´t know whether the XML will be written to file or
>whatever. I am unable to find a way to to this, as the XMLOutputter only
>uses OutputStreams..

The getSerializedForm() method should eventually do that, though when 
I was digging through the source code today, it looked like it wasn't 
finished yet.

| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
|                  The XML Bible (IDG Books, 1999)                   |
|              http://metalab.unc.edu/xml/books/bible/               |
|   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |

More information about the jdom-interest mailing list