This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
XML describes structured data. You need to decide how to convert structured data into "flat" data before anyone (and that person will be you, although we'll try to help) can write the code to do it. So: how does the XML look like, and how would it look in a non-XML text file?