def get_element(self, tag_name, attribute):
        """
            Return element in xml files which match with the tag name and the specific attribute

            @param tag_name: a string which specify the tag name
            @param attribute: a string which specify the attribute
        """
        l = []
        for i in self.xml:
            for item in self.xml[i].getElementsByTagName(tag_name):
                value = item.getAttribute(attribute)

                if len(value) > 0:
                    return value
        return None

            Return element in xml files which match with the tag name and the specific attribute

            @param tag_name: a string which specify the tag name
            @param attribute: a string which specify the attribute
        
airtest/utils/apkparser/apk.py