The X3P Publisher API

 

XML isXML / changeToXML
Selects the XML 1.0 format. The document will be published in the XML format for consumption by an XML processor or XML-capable browser. This is the default publishing format for XML documents.
HTML isHTML / changeToHTML
Selects the HTML 4.0 format. The document is published in the HTML format for consumption by any Web browser or HTML editor. HTML documents cannot be processed by XML processors.
XHTML isXHTML / changeToXHTML
Selects the XHTML 1.0 format. The document is published in the HTML-in-XML format for consumption by both XML processors and Web browsers. This is the default publishing format for HTML documents.
Encoding getEncoding / changeEncoding
Selects the character encoding in which the document will be stored. The selected encoding appears in the document declaration and is also used to encode the output stream. When using a writer, make sure the writer was constructed with a compatible encoding value. The default encoding is UTF-8.
Default isDefault / changeToDefault
Selects the default output format. The published document is identical to the contents of the document tree.
Compact isCompact / changeToCompact
Selects the compact output format. Redundant spaces and comments are removed from the document to produce a smaller output image.
Pretty isPretty / changeToPretty
Selects the pretty print format. Line breaks between elements, wrapping of long lines and indentations are used to format the document, making it easier to handle with a text editor. The resulting document can be substantially larger than in the default format.
IndentSpaces getIndentSpaces / changeIndentSpaces
Specifies the number of spaces to used for each indentation level. The default is four. This value is only applicable to documents published in the pretty print format.
LineWrap getLineWrap / changeLineWrap
Specifies the position at which to wrap long lines along a space break. The default is 72 columns. This value is only applicable to documents published in the pretty print format.
LineSeparator getLineSeparator / changeLineSeparator
Specifies an alternative line separator. The default is a single new-line. If the document is to be edited in a Windows/DOS environment, it might be convenient to use a carriage-return and new-line pair instead.
ExternalDTD getExternalDTD / changeExternalDTD
The external DTD with which the document is associated. Specifying a different public or system identifier will force the document to be published under that DTD. This setting has no affect on the internal DTD.
InternalDTD getInternalDTD / changeInternalDTD
The internal DTD subset with which the document is published. Specifying a different DTD subset will force the document to be published with that DTD. This setting has no affect on the external DTD.
Standalone isStandalone / changeToStandalone
Forces the document to be printed in standalone mode. In that mode that document does not reference an external DTD subset.