Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major 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()

      { > > *return* *alertMetaData*; > > }

      >
      > public void setAlertMetaData(String alertMetaData)

      { > > *this*.alertMetaData = *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.

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Ummer Shervani
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: