def create_class_from_xml_string(target_class, xml_string):
 tree = ElementTree.fromstring(xml_string)
 return create_class_from_element_tree(target_class, tree)

def create_class_from_xml_string ( target_class , xml_string ) : tree = ElementTree . fromstring ( xml_string ) return create_class_from_element_tree ( target_class , tree )
creates an instance of the target class from a string .