fix switch body to xml