For parsing the XML, check out the API documentation for
org.w3c.dom.Document
javax.xml.parsers.DocumentBuilder
javax.xml.parsers.DocumentBuilderFactory
Then use XPath to find specific nodes in the document. See
javax.xml.xpath.XPathExpression
javax.xml.xpath.XPath
javax.xml.xpath.XPathFactory
If you have problems with any part, post again