def get_element(self, tag_name, attribute, **attribute_filter):
        for i in self.xml:
            for item in self.xml[i].getElementsByTagName(tag_name):
                skip_this_item = False
                for attr, val in attribute_filter.items():
                    attr_val = item.getAttributeNS(NS_ANDROID_URI, attr)
                    if attr_val != val:
                        skip_this_item = True
                        break

                if skip_this_item:
                    continue

                value = item.getAttributeNS(NS_ANDROID_URI, attribute)

                if len(value) > 0:
                    return value
        return None
Return element in xml files which match with the tag name and the specific attribute
dataset/ETHPy150Open androguard/androguard/androguard/core/bytecodes/apk.py/APK.get_element