commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Donaghy <pmdcomm...@yahoo.com>
Subject Re: [betwixt]java.util.Map to xml
Date Thu, 09 Jun 2005 14:00:31 GMT
Thanks for all the help, I forgot to mention the fact
that I have to go back to a the original Map with the
right objects. I see that my String, Long, Double
values are not encoded.

Can I get the Map back in it's original state?

Philip

--- Philip Donaghy <pmdcommons@yahoo.com> wrote:

> Christian,
> 
> Thanks for the code, I remember seeing this when I
> looked at commons-sql if I recall it uses
> commons-digester. Thanks Craig and the authors of
> commons-sql and commons-betwixt, James.
> 
> Philip
> 
> --- Christian Aust <christian@wilde-welt.de> wrote:
> 
> > Hi,
> > 
> > Philip Donaghy schrieb:
> > > Does anyone know the fastest way from a Map to
> > xml?
> > 
> > have a look a commons-betwixt:
> > 
> > BeanWriter writer = new BeanWriter(System.out);
> > Map m = new HashMap();
> > m.put("myKey", "some Value");
> > writer.write(m);
> > 
> > will write:
> > 
> > <?xml version="1.0" ?>
> >    <HashMap id="1">
> >      <empty>false</empty>
> >      <entry id="2">
> >        <key>myKey</key>
> >        <value>some Value</value>
> >      </entry>
> >    </HashMap>
> > 
> > The process is fully configurable. Fast enough?
> > Regards,
> > 
> > -  Christian
> > 
> > -- 
> > 
> > Christian Aust
> > mailto:christian@wilde-welt.de
> > icq: 84500990 - Yahoo!: datenimperator - MSN:
> > datenimperator
> > PGP: A94E 0181 664D 27E3 F05A  A751 6A7E 90D1 A0A3
> > DEC7
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > commons-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> 
> 		
> __________________________________ 
> Discover Yahoo! 
> Stay in touch with email, IM, photo sharing and
> more. Check it out! 
> http://discover.yahoo.com/stayintouch.html
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
> 



		
__________________________________ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 


---------------------------------------------------------------------
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