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.
public int getType();
Returns the element type.