¡@

Home 

2014/10/15 ¤U¤È 10:14:46

iphone Programming Glossary: tbxmlelement

iPhone TBXML Looping And Parsing Data

http://stackoverflow.com/questions/5406424/iphone-tbxml-looping-and-parsing-data

records @property nonatomic retain NSMutableArray records void loadRecords NSString records void traverseElement TBXMLElement element @end Now go ahead and charge into your implementation. We now need to implement those two methods to do what we.. parsing process. Also you're initializing your array and retaining it. Now we come to the cheese. void traverseElement TBXMLElement element do if element firstChild self traverseElement element firstChild if TBXML elementName element isEqualToString @.. if element firstChild self traverseElement element firstChild if TBXML elementName element isEqualToString @ Record TBXMLElement destination TBXML childElementNamed @ Destination parentElement element TBXMLElement status TBXML childElementNamed @ Status..