parameter_to_xml function

Internal function