2 update exist elements and attributes