NSXmlParser (or alternative) help

Discussion in 'iOS Programming' started by dusker, Aug 3, 2009.

  1. dusker macrumors member

    Joined:
    May 31, 2009
    #1
    Hi,
    i have an xml file with a similar structure:
    Code:
    <item><url address="http://yahoo.com" lenght="7"></url></item>
    of course there are many <item> objects in the file but my concern is how to get the address value from inside the code? (i know how to get the value inside the tag, but no idea how to get the parameter value).
    Is there some other alternative to NSXmlParser? (preferably opensource).
    greetings
    peter
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    You can pull attribute values using NSXMLParser's parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: delegate method.
     

Share This Page