update Tag and Attribute Collection using Iterator