NSXMLParser I just cant understand it

Discussion in 'iOS Programming' started by alexandergre, Aug 14, 2009.

  1. alexandergre macrumors member

    alexandergre

    Joined:
    Jul 28, 2009
    #1
    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.
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State

Share This Page