|- valign="top"
| <code>method</code>
| Specifies the serialization method. If <code>json</code> or <code>jsonml</code> is specified, the XML document must conform is serialized according to the BaseX [[JSON Functions#json:parse|JSON syntax]]rules.
| <code>xml</code>, <code>xhtml</code>, <code>html</code>, <code>text</code>, <code>json</code>, <code>jsonml</code>
| <code>xml</code>