Well, there are parsers available for retrieving the elements stored inside XML files. Read this tutorial. There is a class called DefaultHandler that your class needs to extend. It has callback methods that the parser calls internally. When you override them, you will be able to parse the XML. Study these and try it out. Come back if you are stuck somewhere.
Stan Lederer wrote:Thanks, Bear. I've dealt with the SAX Parser. It's not fun, especially for a simple task like this.
Yes, I agree. Suggesting to use a SAX parser for this task wasn't a good suggestion either. If you were going to parse that XML (which you aren't) then the most convenient possible parser would be the way to go.