tree_prior_to_xml_state function

Creates the XML of a tree prior, as used in the state section