2 Replies Latest reply: Nov 7, 2012 11:06 AM by user6532100 RSS

    How to create map object from a list

    user6532100
      How can I create a map object from a list of users? Following is the information that i have..


      <List>
      <String>abc1</String>
      <String>abc2</String>
      </List>

      I tried using <map>, but the output was:

      <List>
      <Map>
      <MapEntry key='approver'>
      <List>
      <String>abc1</String>
      <String>abc2</String>
      </List>
      </MapEntry>
      </Map>
      </List>


      I need the output to be like this:

      <List>
      <Map>
      <MapEntry key='approver' value='abc1'/>
      </Map>
      <Map>
      <MapEntry key='approver' value='abc2'/>
      </Map>
      </List>

      Any help is appreciated. Thanks in advance.