Microsoft SDK for Java

createElement

This method of the ElementFactoryImpl class retrieves a new element for the specified tag and type.

Syntax

public Element createElement(Element parent, int type, Name tag, String text);

Return Value

Returns the newly created element.

Parameters

parent The parent element.
type One of the predefined Element types that can be returned from Element.getType.
tag The name of the element.
text The element text.

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