Microsoft SDK for Java

addChild

This method of the Document class adds a child Element to the document. This is an override of the Element.addChild method that stores the new child and stores the last element of type Element.ELEMENT, so that getRoot can be used as a shortcut to find a particular element.

Syntax

public void addChild(Element elem, Element after);

Parameters

elem The child element to add.
after The element after which to add the elem element.

Overrides

addChild(Element,Element) in ElementImpl.

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