def setTag(self, name, attrs={}, namespace=None):
        """ Same as getTag but if the node with specified namespace/attributes not found, creates such
            node and returns it. """
        node=self.getTags(name, attrs, namespace=namespace, one=1)
        if node: return node
        else: return self.addChild(name, attrs, namespace=namespace)
 Same as getTag but if the node with specified namespace/attributes not found, creates such
            node and returns it. 
chrome-cordova/gcmServer/xmpp/simplexml.py