I have a xml file and I want to represent it in java objects in best way (using the best data structures.) What is the best architecture for it.
Ex:
<Parent>
<child1 par=aaa par2=bbb>
<userName>xxx</userName>
<password>xxx</password>
</child1>
<child2>
<child22>
---------
</child22>
</child2>
</parent>
Here how do I manage the java classes and variable ?