Hi Fabio
or you could use the annotations...
XStreamAlias("book")
private BookName bookName;
...
xstream.processAnnotations(TheClassContainingBookName.class);
Annotations tutorial:
http://xstream.codehaus.org/annotations-tutorial.html
:o)
Cheers,
DaveMark
.
________________________________
From: Jörg Schaible <[email protected]>
To: [email protected]
Sent: Friday, 1 March 2013, 19:04
Subject: [xstream-user] Re: Help fromXml
Hi Fabio,
Fabio Ebner wrote:
> Hi. i have one tag named <book>dd</book> but in my object the name of
> prop are bookName
>
> can anyone help me how i can put the book value into my bookName prop?
xstream.aliasField
Please have a look at the alias tutorial.
http://xstream.codehaus.org/alias-tutorial.html
Cheers,
Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email