def delChild(self, node, attrs={}):
        """ Deletes the "node" from the node's childs list, if "node" is an instance.
            Else deletes the first node that have specified name and (optionally) attributes. """
        if not isinstance(node, Node): node=self.getTag(node,attrs)
        self.kids[self.kids.index(node)]=None
        return node
 Deletes the "node" from the node's childs list, if "node" is an instance.
            Else deletes the first node that have specified name and (optionally) attributes. 
chrome-cordova/gcmServer/xmpp/simplexml.py