'Same as getTag but if the node with specified namespace/attributes not found, creates such
node and returns it.'

def setTag(self, name, attrs={}, namespace=None):

    node = self.getTags(name, attrs, namespace=namespace, one=1)
    if node:
        return node
    else:
        return self.addChild(name, attrs, namespace=namespace)
