def harvest_element_tree(self, tree):
        # Fill in the instance members from the contents of the XML tree.
        for child in tree:
            self._convert_element_tree_to_member(child)
        for attribute, value in tree.attrib.iteritems():
            self._convert_element_attribute_to_member(attribute, value)
        if tree.text:
            #print "set_text:", tree.text
            # clear type
            #self.clear_type()
            self.set_text(tree.text)
            if XSI_NIL in self.extension_attributes:
                del self.extension_attributes[XSI_NIL]
            try:
                typ = self.extension_attributes[XSI_TYPE]
                _verify_value_type(typ, getattr(self, "text"))
            except __HOLE__:
                pass
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/pysaml2-2.4.0/src/saml2/saml.py/AttributeValueBase.harvest_element_tree