I have this structure:
Inside the data-element there is 100 person_info-elements (I just wrote one for making it shorter to write). The tot_num_in_list-element contains the number of person_info-elements that is returned from the database with content. So, in this case I get in return from the database one person_info-element that contains a name, address and a phonenumber, and I also get 99 empty.Code:<data> <tot_num_in_list>1</tot_num_in_list> <person_info> <name/> <address/> <phone/> </person_info> </data>
How do I exctract these data's based on the tot_num_in_list-element? Instead of looping through a 100 elements, I just want to go through the first 'n' elements based on the tot_num_in_list-element.
How can I achieve this?