There are lots of ways to extract data from an XML document. How you write the data is up to you.
If you are a total newbie at XML, better start with a good tutorial - this free online book is very thorough. Alternately you might browse some of the posts in the xml forum to get hints.