properly print to xml multi-cases