fix closing tag in xml output