I have been using MAPPING File. But, My Problem is, the Order of XML Tags in Source XML is not proper/aligned with the Marshalled XML.
For e.g.,
SOURCE XML:
----------------
<root>
<group>
<A1>c</A1>
<B1>d</B1>
</group>
<eg>abc</eg>
<ad>cdef</ad>
</root>
My mapping file also contains the same order as above and it's appropriate
Java objects. Say, "Root.java" is the Main Java Object, wich consists of all the tags/child tags data and When, I MARSHAL this Java Object back to XML, the tags ORDER is disturbed/not aligned with the SOURCE.XML
OUTPUT.XML
---------------
<root>
<group>
<A1>c</A1>
<B1>d</B1>
</group>
<eg>abc</eg>
<ad>cdef</ad>
</root>
In above, the <group> tag came at the end of XML instead of at beginng.
But, Ofcourse, I am not losing any data of source xml.
I hope, I am clear.
Thanks.