commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dakshesh Satyajit <datshesh...@yahoo.com>
Subject Flattening Maps
Date Thu, 14 Dec 2006 01:11:09 GMT
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.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message