'return 1st tag\'s value in the xmls'

def _get1stTagText(self, xmls, tagname_list):

    dom = fromstring(xmls)
    r = {}
    for tagn in tagname_list:
        try:
            txt_node = dom.find('.//{}'.format(tagn))
            if (txt_node is not None):
                if (tagn in self.UPNPTYPEDICT):
                    r[tagn] = self.UPNPTYPEDICT[tagn](txt_node.text)
                else:
                    r[tagn] = txt_node.text
            else:
                r[tagn] = None
        except:
            print 'xml    parse    err:    {tag}    not    found'.format(tag=tagn)
    return r
