'Returns attribute value of the child with specified name (or None if no such attribute).'

def getTagAttr(self, tag, attr):

    try:
        return self.getTag(tag).attrs[attr]
    except:
        return None
