'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.'

def delChild(self, node, attrs={}):

    if (not isinstance(node, Node)):
        node = self.getTag(node, attrs)
    self.kids[self.kids.index(node)] = None
    return node
