Hi - You need to use the Java to XML binding API - JAXB - Or you can use open source API like Castor.
JAXB maps the XML elements to java objects so that they can be accessed in your java code.
This...