This method of the Document class retrieves the document type.
public int getType();
Returns the value defined by Element.DOCUMENT.
getType() in ElementImpl.