This method of the Document class retrieves the current output style.
public int getOutputStyle();
Returns the output style. The default style is XMLOutputStream.PRETTY.