Writes New XML files