gamma_distr_to_xml function

Internal function