create_hky_subst_model_xml function

Converts a site model to XML, used in the substModel section