Make XML report output well formed.
Remove % from Loss tag name, add quotes around attribute names,
add XML header.