Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

alexandergre

macrumors member
Original poster
Jul 28, 2009
58
0
I have read alot about xmlparser. but idont get a single line. This should have been a little simple. in php it all goes well. but objC :( can you please write the code. im like really confused.

Code:
int *id; 
NSString *URL;

button1.touchUp{
id=0
URL= what? how can I parse the url in id="0" from the xml?
};



kommun.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<kommuner>

<kommun id="0">
<URL>www.google.se</URL>
</kommun>


</kommuner>

there is an example here. but im really confused. please help me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.