extended to loop over all items in xml fixes #4