hi There, I will use Skinzy code because is very very similar to my code. I'm "fighting" with XML for a days and I decided to use TBXML..
first of all I think there should be
Code:
TBXMLElement *id = [TBXML childElementNamed:@"CompanyID" parentElement:element];
instead of
Code:
TBXMLElement *id = [TBXML childElementNamed:@"ID" parentElement:element];
but ok.. I got very similar program and XML so I wouldn't bother you by posting it there, so where I got up today?
I successfully loaded .xml file from internet asynchronously by using GREAT tutorial from
http://www.iphonedevsdk.com/forum/ip...rvice-how.html - thank you dany_dev! unfortunatelly the next part of processing xml is "so hard" for me so I get TBXML and - I got all my records in the records = [NSMutableArray array]; so up to this is all ok..
but now: I just need to do something like
textlabel1.text = load company name for company 1
textlabel2.text = load location for company 1..
and so on.. (I'm using Skinzy example to don't mess the code..)
so anyone better than me with the NSMtableArray?

my array has a data but.. how to reach the data?
thank you for your answers!
EDIT: OK I GOT IT! It is necessary to have separate NSMutableArray for every "item"..
my example code:
TBXMLElement *idcko = [TBXML childElementNamed:@"id" parentElement:element];
NSString *idckoS = [TBXML textForElement:idcko];
[idckoArray addObject:idckoS];
TBXMLElement *title = [TBXML childElementNamed:@"title" parentElement:element];
NSString *titleS = [TBXML textForElement:title];
[titleArray addObject:titleS];