I want to know a data structure for storing values of tags. My XML structure is :
<personaldetails>
<name>Michael</name>
<age>28</age>
<gender>Male</gender>
<address>123 Streeet 7</address>
<country>India</country>
<pincode> 1234877</pincode>
<contactno>35646445</contactno>
<emailid>[email protected]</emailid>
</personaldetails>
I want to store the values at a single place using data structure.Presently i am using setter and getter methods for retrieving values which is making my code large. Can someone suggest something?