* <code>xml</code>, <code>xhtml</code>, <code>html</code>, and <code>text</code> are taken from the official specification.
* <code>json</code> and <code>jsonml</code> are specific to BaseX and can be used to output XML nodes in the JSON format (see [[JSON Functions]] for more details). Added with <font color="red">Version 6.7.2</font>
* <code>raw</code> is BaseX-specific as well and allows for a raw text users to output (items in their internal format: no indentation and entity encodingcoding takes place, no indentation, no elements binary data is directly output). This method is preferable whenever the result is to be further processed as plain raw data, and all nodes except for textnodes are skipped. Added with <font color="red">Version 6.7.2</font>
| <code>xml</code>, <code>xhtml</code>, <code>html</code>, <code>text</code>, <code>json</code>, <code>jsonml</code>, <code>raw</code>
| <code>xml</code>