'Get the root (top) node of the tree.
@return: The I{top} node of this tree.
@rtype: I{Element}'

def getRoot(self):

    if (self.parent is None):
        return self
    else:
        return self.parent.getRoot()
