This method of the Element interface retrieves the type of the element. The type is always one of the following values: DOCUMENT, ELEMENT, PCDATA, PI, META, COMMENT, or CDATA.
public int getType();
Returns element type.