Java application to parse and xml file