PDA

View Full Version : NSXMLParser I just cant understand it




alexandergre
Aug 14, 2009, 08:07 PM
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.

int *id;
NSString *URL;

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



kommun.xml
<?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.



dejo
Aug 14, 2009, 08:48 PM
Have you given a good look at the SeismicXML (http://developer.apple.com/iphone/library/samplecode/SeismicXML/index.html) sample app?