def get_elements(self, tag_name, attribute):
        """
            Return elements 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:
                    if value[0] == ".":
                        value = self.package + value
                    else:
                        v_dot = value.find(".")
                        if v_dot == 0:
                            value = self.package + "." + value
                        elif v_dot == -1:
                            value = self.package + "." + value

                l.append(str(value))
        return l

            Return elements 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