This method of the Document class retrieves the root node of the XML parse tree. This is guaranteed to be of type Element.ELEMENT.
public final Element getRoot();
Returns the root node.