Microsoft SDK for Java

getParent

This method of the ElementImpl class retrieves the parent of this element. Every element in the tree except the Document object itself has a parent.

Syntax

public Element getParent();

Return Value

Returns the parent element or null if the element is at the root of the tree.

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