* <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 the [[JSON Module]] for more details). Added with {{Version|7.0}}
* <code>raw</code> is BaseX-specific as well. Binary data is output as raw data, and the string value is returned for all other items are returned in their string representation. No indentation takes place, and and no indentation and entity coding takes placecharacters are encoded via entities. Added with {{Version|7.0}}
| <code>xml</code>, <code>xhtml</code>, <code>html</code>, <code>text</code>, <code>json</code>, <code>jsonml</code>, <code>raw</code>
| <code>xml</code>