Hi Angelo, you can use it like this:
public class MyClass {
public MyClass(Whatever what ever) { }
public MyClass() {}
public String toXML() {
ByteArrayOutputStream stream = new ByteArrayOutputStream() ;
try {
XMLEncoder encoder = new
nal Message-
> From: Angelo Chen [mailto:[EMAIL PROTECTED]
> Sent: Saturday, September 01, 2007 1:07 AM
> To: users@tapestry.apache.org
> Subject: RE: T5: POJO to xml lib
>
>
> Hi Jonathan,
>
> I tried XStream as suggested by 蝈蝈龙, it works, but library size is big
>
Hi Guoguo,
XStream works well under T5, problem now is, it does not handle UTF-8, any
tips on this too? Thanks.
A.C.
蝈蝈龙 wrote:
>
> Indeed Castor is more portable than XStream. But XStream is stronger and
> more simpler.
> So you have to bear it's slightly bigger size.
> But I find all the dep
se this the most.
> >
> > If you want to favor the XML side, then XMLBeans at Apache would be
> > better.
> >
> > JB
> >
> >
> >> -Original Message-----
> >> From: Angelo Chen [mailto:[EMAIL PROTECTED]
> >> Sent: Friday, August 31, 20
riginal Message-
>> From: Angelo Chen [mailto:[EMAIL PROTECTED]
>> Sent: Friday, August 31, 2007 9:12 PM
>> To: users@tapestry.apache.org
>> Subject: T5: POJO to xml lib
>>
>>
>> Hi,
>>
>> I have this need to write/read some java object
Hi 蝈蝈龙,
I tried XStream's toXML, it works, but not yet try writing to a file. one
thing I notice is, the size of lib, the war file's size was increased from
1.9mb to 7mb, looks like XStream is larger than Tapestry's lib, right?
蝈蝈龙 wrote:
>
> is XStream good idea?
>
> 2007/9/1, Fidel Chavarr
m: Angelo Chen [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 31, 2007 9:12 PM
> To: users@tapestry.apache.org
> Subject: T5: POJO to xml lib
>
>
> Hi,
>
> I have this need to write/read some java objects to xml files in T5, can
> anybody recommend one that works? Than
Hi Fidel,
I have some problem with XMLEncoder:
http://www.nabble.com/T5%3A-Can-XMLEncoder-be-used-with-T5-app--tf4362923s302.html
how to use this xmlencode to avoid those exceptions? Thanks,
A.C.
Fidel Chavarria wrote:
>
>
>
> Hi,
> you can use XMLEncoder/Decoder from java Api.
>
> make
is XStream good idea?
2007/9/1, Fidel Chavarria <[EMAIL PROTECTED]>:
>
>
>
>
> Hi,
> you can use XMLEncoder/Decoder from java Api.
>
> make sure you don't do this in a page "delegate" this functionality to
> your
> the infrastructure layer.
>
>
> Angelo Chen wrote:
> >
> > Hi,
> >
> > I have this
Hi,
you can use XMLEncoder/Decoder from java Api.
make sure you don't do this in a page "delegate" this functionality to your
the infrastructure layer.
Angelo Chen wrote:
>
> Hi,
>
> I have this need to write/read some java objects to xml files in T5, can
> anybody recommend one that works?
Hi,
I have this need to write/read some java objects to xml files in T5, can
anybody recommend one that works? Thanks.
A.C.
--
View this message in context:
http://www.nabble.com/T5%3A-POJO-to-xml-lib-tf4363192.html#a12436353
Sent from the Tapestry - User mailing list archive at Nabble.com.
11 matches
Mail list logo