[jdom-interest] Getting String from a Document

Brett McLaughlin brett.mclaughlin at lutris.com
Thu Jun 15 08:43:06 PDT 2000


Elliotte Rusty Harold wrote:
> 
> 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.

The ones on Document and Element aren't done - the rest, I believe, are
fine...

> 
> +-----------------------+------------------------+-------------------+
> | 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/     |
> +----------------------------------+---------------------------------+
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

-- 
Brett McLaughlin
Enhydra Strategist
Lutris Technologies
1200 Pacific Avenue
Santa Cruz, CA  95060



More information about the jdom-interest mailing list