iterate over array instead of xml node object