Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Not A Bug
-
Affects Version/s: 1.1.3
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Hi,
>
> I need to map an XML part to a string, How can I do it. Here is the
> requirement
>
> String xml=
>
"<alert><alertmetadata><companyname>IBM</companyname><stateofincorp>MN</stateofincorp></alertmetadata></alert>\n";
>
>
> mapping
>
> @XStreamAlias
> ("alert")
>
> Class Alert
>
> {
>
> @XStreamAlias("alertmetadata")
>
> String alertmetadata;
>
> public String getAlertMetaData()
>
> public void setAlertMetaData(String alertMetaData)
>
> }
> If I input xml shown above, my alertmetadata string should contain "
> <companyname>IBM</companyname><stateofincorp>MN</stateofincorp>"
>
>
> Anyway I can achieve this?, please reply asap.
Please! This is a bug tracker and not a help forum. If you have questions and you're searchign for help, use the user's list. http://xstream.codehaus.org/list-user.html