You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Dakshesh Satyajit <da...@yahoo.com> on 2006/12/14 02:11:09 UTC
Flattening Maps
I have a Map as a property of an object. When serialized, it looks like this.
<machine>
<internals>
<entry>
<class>java.util.HashMap$Entry</class>
<key>start</key>
<value>6000</value>
</entry>
<entry>
<class>java.util.HashMap$Entry</class>
<key>end</key>
<value>8000</value>
</entry>
</internals>
</machine>
I would like the output to look like this.
<machine>
<start>6000</start>
<end>8000<end>
</machine>
Any help or suggestions would be most appreciated.
-Dakshesh
---------------------------------
Want to start your own business? Learn how on Yahoo! Small Business.