cleanup
set_property_from_xml helper function