Microsoft SDK for Java

getRoot

This method of the Document class retrieves the root node of the XML parse tree. This is guaranteed to be of type Element.ELEMENT.

Syntax

public final Element getRoot();

Return Value

Returns the root node.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.