create and update xml