..or I just don't understand it.
Why have all these crazy delegate methods like didStartElement, foundCharacters, foundComment... I mean, let's say foundCharacters gets called. It has NO idea what element the string belongs to, right?
I don't understand why there's not just a method for NSXMLParser that parses everything and returns a single data object like an NSDictionary or NSSet, etc. I just want to grab XML data via the web and have all of that data very easily accessible in some sort of data structure.
Could someone explain the methodology behind NSXMLParser and how to use the delegates to assemble data?
Why have all these crazy delegate methods like didStartElement, foundCharacters, foundComment... I mean, let's say foundCharacters gets called. It has NO idea what element the string belongs to, right?
I don't understand why there's not just a method for NSXMLParser that parses everything and returns a single data object like an NSDictionary or NSSet, etc. I just want to grab XML data via the web and have all of that data very easily accessible in some sort of data structure.
Could someone explain the methodology behind NSXMLParser and how to use the delegates to assemble data?