It looks like you need to extract info from an XML document. I guess you posted this message to wrong forum and i moved it to XML forum.
If you are developing this application for a mobile phone, check kXML:
About kXML
If you are developing your application in Java SE, check the following API already available in Java SE:
Java API for XML Processing (JAXP)