|- valign="top"
| <code>method</code>
| Specifies the serialization method. If <code>json</code> or and <code>jsonml</code> is specified, the XML document is serialized according to has been added with <font color="red">Version 6.7.2</font> of BaseX (see [[JSON Functions]] rulesfor more details).
| <code>xml</code>, <code>xhtml</code>, <code>html</code>, <code>text</code>, <code>json</code>, <code>jsonml</code>
| <code>xml</code>