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

dusker

macrumors member
Original poster
May 31, 2009
41
0
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
 
You can pull attribute values using NSXMLParser's parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: delegate method.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.