using iterator instead of xpath for collections.xml parsing