<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000080 face=Fixedsys size=2>if docXML is the jdom document you
have created, you can convert to string as follows,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#000080 face=Fixedsys size=2>ByteArrayOutputStream out = new
ByteArrayOutputStream();<BR> <BR> XMLOutputter
fmt = new XMLOutputter();<BR>fmt.output(docXML,
out);<BR>return out.toString();</FONT></DIV>
<DIV> </DIV>
<DIV>****************************************************************************************************************************************************<BR>Write
it on your heart that every day is <BR> the best day of the year.
<BR> --Emerson<BR>****************************************************************************************************************************************************</DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000080 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:paul.madsen@coventus.com" title=paul.madsen@coventus.com>Paul
Madsen</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:jdom-interest@jdom.org"
title=jdom-interest@jdom.org>jdom-interest@jdom.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, October 03, 2000 6:45
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [jdom-interest] trivial
question</DIV>
<DIV><BR></DIV>I want to create a string from a Document object. Is there a
quick way<BR>or must I iterate through the chidlren?<BR><BR>I can't get
XMLOutputter to work, I get complaints about mismatch<BR>between string and
stream.<BR><BR>As a newbie, I would find more examples of JDOM in action
invaluable. So<BR>far, I'm working off of Elliotte Rusty Harold's
presentation. Any other<BR>collections I'm
missing?<BR><BR>Thanks<BR><BR>--<BR>Paul Madsen<BR><BR>Coventus Intuitive
Networks<BR>340 Terry Fox Drive, Kanata, On, Ca<BR>K2K 3A2<BR>e) <A
href="mailto:paul.madsen@coventus.com">paul.madsen@coventus.com</A><BR>p)
(613) 271-0180
x296<BR><BR><BR>_______________________________________________<BR>To control
your jdom-interest membership:<BR><A
href="http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com">http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com</A></BLOCKQUOTE></BODY></HTML>