def get_element(self, tag_name, attribute, **attribute_filter):
for i in self.xml:<EOL><INDENT>if self.xml[i] is None :<EOL><INDENT>continue<EOL><DEDENT>tag = self.xml[i].getElementsByTagName(tag_name)<EOL>if tag is None:<EOL><INDENT>return None<EOL><DEDENT>for item in tag:<EOL><INDENT>skip_this_item = False<EOL>for attr, val in list(attribute_filter.items()):<EOL><INDENT>attr_val = item.getAttributeNS(NS_ANDROID_URI, attr)<EOL>if attr_val != val:<EOL><INDENT>skip_this_item = True<EOL>break<EOL><DEDENT><DEDENT>if skip_this_item:<EOL><INDENT>continue<EOL><DEDENT>value = item.getAttributeNS(NS_ANDROID_URI, attribute)<EOL>if len(value) > <NUM_LIT:0>:<EOL><INDENT>return value<EOL><DEDENT><DEDENT><DEDENT>return None<EOL>
Return element in xml files which match with the tag name and the specific attribute

:param tag_name: specify the tag name
:type tag_name: string
:param attribute: specify the attribute
:type attribute: string

:rtype: string