I am currently working on a software to control aMule status of my server through the iPhone,
i created a socket that spits out xml which should be parsed out, but because NSXMLParser is event-drive, i’m having problems in understanding how this could work…
I thought of this type of XML structure, if you have ideas of a better way to structure it please tell me!! 😀
<root type="donwloads"> <-- specifies downloads or search results
<file name="Ubuntu_9_10.iso" status="[11,6%]" />
<file name="Fedora 12.iso" status="[56,2%]" />
</root>
What i was thinking is, as i want to put this in a tableview, most probably i will need a NSMutableArray with lots of NSDictionaries based on the results, every dict should be a file.. what do you guys propose?? how should i handle this situation?
Thanks
Thanks a lot for your answers 😀 fortunately i resolved the problem 10 minutes after 😀
ill post what i did:
XML:
NSXMLParser delegates:
I hope this can possibly help someone which has my same problem 😀