edit XML structure