optimizing XMLs by deleting dupes part 2