failed attempt at merging XML files