PDA

View Full Version : NSXmlParser (or alternative) help




dusker
Aug 3, 2009, 09:25 AM
Hi,
i have an xml file with a similar structure:
<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



dejo
Aug 3, 2009, 11:01 AM
You can pull attribute values using NSXMLParser's parser:foundAttributeDeclarationWithName:forElement:type:defaultValue: delegate method.