commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manos Batsis <manos_li...@geekologue.com>
Subject Re: [xml]java.util.Map to xml
Date Thu, 09 Jun 2005 13:41:12 GMT

Quoting Philip Donaghy <pmdcommons@yahoo.com>: 
> Does anyone know the fastest way from a Map to xml?

Lots of solutions here that can serialize java objects (and collections
like Maps) to XML; J2SE's XMLEncoder [1], XStream[2], JOX [3] and even
my own uriqa4j[4] can do that if you like RDF. There are many others of
course, some more binding oriented than others. XMLEncoder is already in
your classpath while XStream is a two-liner; what's best for you depends
on your needs though. 

waitaminute. is this commons? i thought it was xml-dev :-)

[1] http://java.sun.com/j2se/1.4.2/docs/api/java/beans/XMLEncoder.html
[2] http://xstream.codehaus.org/
[3] http://www.wutka.com/jox.html
[4] http://geekologue.com/uriqa4j/

hth,

Manos


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message