iphone xml binding / parsing to objects

willy134uk

New Member
I'm new to iphone developing and what I want is an xml parser that I can bind to Objects. I searched a lot but I still need some help. For example I have the following xml structure:\[code\]<xml> <hotels> <hotel> <id>1</id> <name>Hotel Name</name> </hotel> <hotel> .... </hotel> </hotels> <beaches> <beach> <id>11</id> <name>Beach Name</name> </beach> <beach> .... </beach> </beaches></xml>\[/code\]Now my question is...which is the best (or maybe easier) way to read this xml file and parse for example...:[*]Now I want a list of all hotels...so I want o parse and get that list...etc. [*]Now I want beach with id = 11 etc.Can this be done easily in iphone? Which is the best approach? I would be thankful if you could give me examples with source code or such. Thanks in advance. NOTE: I will support at least ios 4.3 or later.
 
Back
Top