Add span infos to XML dump