Java Android 2.3.3, how do I load multiple data from an XML file?

HemKit

New Member
I have an XML file in res/values. The file contains a list of people. This is then presented inside a listview. So far, no problems. But I want to modify my listview to also display a picture for each person and some details. The idea is something like this for the listview:\[code\]<row> Name - Picture <i>Description</i></row>\[/code\]My question is, how can I store all that information inside my XML file? Normally that is not a problem, like:\[code\]<persons> <person name="Scott"> <picture>path to asset somehow?</picture> <desciption>Description of Scott</desciption> </person> ...</persons>\[/code\]But how do I add this into the res/value/persons.xml file? The only thing is like a string-array and I do want Scott's description to end up with Scott and not with someone else. Is this possible or do I have to add this xml document somewhere else and then parse it somehow?
 
Back
Top