You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by August Detlefsen <au...@yahoo.com> on 2002/06/10 22:28:16 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Writing XML

Posted by Danny Ayers <da...@virgilio.it>.
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:augustd123@yahoo.com]
>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:
><ma...@jakarta.apache.org>
>For additional commands, e-mail:
><ma...@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>