Fix XML validity