How about DOM? - supported by pretty much any API.
Or extend the classes you are using and add a toString() method that
includes pointy-brackets...
or, if you wrap things up as beans, then SDK 1.4 supports xml serialization.
A direct and neat approach is done by JSX (open source) :
 http://www.csse.monash.edu.au/~bren/JSX/tech.html

have fun,
Danny.

---
Danny Ayers
<stuff> http://www.isacat.net </stuff>


>-----Original Message-----
>From: August Detlefsen [mailto:[EMAIL PROTECTED]]
>Sent: 10 June 2002 22:28
>To: Tomcat Users List
>Subject: Writing XML
>
>
>There seem to be a million libraries out there for reading and parsing
>XML, but how can I WRITE XML?
>
>I essentially want to take a Collection of Objects (like a List of
>Strings) and create an XML Object from that (That I could save to the
>filesystem or a database, or pass along to another Servlet for
>processing).
>
>Can anyone recommend a good API for doing this?
>
>Thanks,
>August
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! - Official partner of 2002 FIFA World Cup
>http://fifaworldcup.yahoo.com
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to