Fixed prepare XML