I need to parse the dynamically generated XML files. So want to parse the xml results in Name and Value pair and will insert in to some Hashmap. So which parsing mechanism is easy and more robust to parse the XML in Name, value pair?
My XML looks like,
<Address>
<Name>Rahul</Name>
<ID>2345</ID>
<City>Pune</City>
<Street>Gandhi Nagar</Street>
</Address>
I need to get the parsing result as,
Name:Rahul
ID:2345
City:Pune
Street:Gandhi Nagar
<Name>,<Address>these things should not change.. their values can change..