Trying to fix problems dumping XML

Signed-off-by: Carlos Escribano <carlos@doofinder.com>