def find_tags_from_xml(
        self, xml_name, tag_name, **attribute_filter
    ):
        """
        Return a list of all the matched tags in a specific xml
        w
        :param str xml_name: specify from which xml to pick the tag from
        :param str tag_name: specify the tag name
        """
        xml = self.xml[xml_name]
        if xml is None:
            return []
        if xml.tag == tag_name:
            if self.is_tag_matched(
                xml.tag, **attribute_filter
            ):
                return [xml]
            return []
        tags = xml.findall(".//" + tag_name)
        return [
            tag for tag in tags if self.is_tag_matched(
                tag, **attribute_filter
            )
        ]
def find_tags_from_xml ( self , xml_name , tag_name , ** attribute_filter ) : xml = self . xml [ xml_name ] if xml is None : return [ ] if xml . tag == tag_name : if self . is_tag_matched ( xml . tag , ** attribute_filter ) : return [ xml ] return [ ] tags = xml . findall ( ".//" + tag_name ) return [ tag for tag in tags if self . is_tag_matched ( tag , ** attribute_filter ) ]
Return a list of all the matched tags in a specific xml
        w
        :param str xml_name: specify from which xml to pick the tag from
        :param str tag_name: specify the tag name