def process_data(self, xmldata): root = ET.fromstring(xmldata.strip()) if root.tag != 'signatures': raise objc.error("invalid root node in bridgesupport file") for node in root: method = getattr(self, 'do_%s' % (node.tag, ), None) if method is None: continue method(node)
def process_data(self, xmldata): root = ET.fromstring(xmldata.strip()) if root.tag != 'signatures': raise objc.error("invalid root node in bridgesupport file") for node in root: method = getattr(self, 'do_%s'%(node.tag,), None) if method is None: continue method(node)