Lately I find it nauseous to do the xml parsing manually, so I referred to an automated data binding solution, Castor, but I'm sure there are similar solutions around (jaxb?).
The advantage is that once you get to map the xml to a java bean, it renders your job very easy to marshall/unmarshall objects.
Afterwards, to get the needed value, you only have to call the respective getter on the bean.
Joined: Jan 13, 2011
Hi Claudiu Chelemen,
But I am not allowed to use any data binding tools like Castor. Need to handle it manually.
Thanks for your quick reply...