def get_elements(self, tag_name, attribute):
l = []<EOL>for i in self.xml:<EOL><INDENT>for item in self.xml[i].getElementsByTagName(tag_name):<EOL><INDENT>value = item.getAttributeNS(NS_ANDROID_URI, attribute)<EOL>value = self.format_value(value)<EOL>l.append(str(value))<EOL><DEDENT><DEDENT>return l<EOL>
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