Microsoft SDK for Java

getType

This method of the ElementImpl class retrieves the type of the element. This is always one of the following values: DOCUMENT, ELEMENT, PCDATA, PI, META, COMMENT, or CDATA.

Syntax

public int getType();

Return Value

Returns the element type.

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