org.enhydra.xml.io
Class OutputOptions

java.lang.Object
  |
  +--org.enhydra.xml.io.OutputOptions

public final class OutputOptions
extends Object

Object that specifies how an HTML, XHTML, or XML file will be formatted.

Use of certain options may be required when using certain document types in order to provide compatibility for buggy or less capable browsers. Make sure to read the option descriptions and do your own testing to make sure these options are really necessary for use in your application...

XHTML (when using XMLC's XHTML DOM)
oo.setEnableXHTMLCompatibility(true)
oo.setUseAposEntity(false)
oo.setOmitXMLHeader(true) (if serving as content-type "text/html", inconsequential when formatting HTML as XHTML)
HTML
oo.setUseAposEntity(false)
oo.setOmitAttributeCharEntityRefs(true) (discouraged, unless truly found to be required)
HTML as XHTML - use XHTML options above plus...
oo.setFormat(org.enhydra.xml.io.OutputOptions.FORMAT_XHTML)
XML
Overriding the defaults of most of these options is not recommended for pure XML and may cause output that doesn't strictly follow the XML spec and/or, in the worst case, invalid XML.

Also, when using pretty printing, the following options are recommended to make it truly pretty...