You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by Chatree Srichart <ch...@gmail.com> on 2009/12/03 07:45:20 UTC
How I convert OMElement to and from java.util.Map and java.util.List
object?
I would like to use Axis2 send OMElement that contain Map and List data
object like this
For Map object
<mapName>
<item>
<name>firstName</name>
<value>Chatree</value>
<item>
<item>
<name>lastName</name>
<value>Srichart</value>
<item>
</mapName>
For List object
<listName>
<item>
Item 1
</item>
Item 2
</item>
</listName>
And need to convert Map and List to XML data and convert XML data back to
java object.
Can any one help me?
Thank you very much.
Regards,
Chatree Srichart