def getTagAttr(self,tag,attr):
        """ Returns attribute value of the child with specified name (or None if no such attribute)."""
        try: return self.getTag(tag).attrs[attr]
        except: return None
 Returns attribute value of the child with specified name (or None if no such attribute).
chrome-cordova/gcmServer/xmpp/simplexml.py