Changes

Jump to navigation Jump to search
341 bytes added ,  17:17, 14 August 2011
| <code>method</code>
| Specifies the serialization method. If <code>json</code> is specified, the XML document must conform to the BaseX [[JSON Functions|JSON syntax]].
| <code>xml</code>, <code>xhtml</code>, <code>html</code>, <code>text</code>, <code>json</code>
| <code>xml</code>
| <code>method=xml</code>
| <code>version</code>
| Specifies the XML version.
| <code>xml/xhtml</code>: <code>1.0</code>, <code>1.1</code><br/><code>html</code>: <code>4.0</code>, <code>4.01</code><br/>
| <code>1.0</code>
| <code>version=1.0</code>
| <code>encoding</code>
| Encoding to be used for outputting the data.
|All encodings supported by Java
| <code>UTF-8</code>
| <code>encoding=US-ASCII</code>
| <code>indent</code>
| Adjusts whitespaces to make the output better readable.
| <code><code>yes</code>, <code>no</code></code>
| <code>yes</code>
| <code>indent=no</code>
| <code>omit-xml-declaration</code>
| Omits the XML declaration, which is serialized before the actual query result<br />Example: <code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</code>
| <code>yes</code>, <code>no</code>
| <code>yes</code>
| <code>omit-xml-declaration=no</code>
| <code>standalone</code>
| Prints or omits the "standalone" attribute in the XML declaration.
| <code>yes</code>, <code>no</code>, <code>omit</code>
| <code>omit</code>
| <code>standalone=yes</code>
| <code>undeclare-prefixes</code>
| Undeclares prefixes in XML 1.1.
| <code>yes</code>, <code>no</code>
| <code>no</code>
| <code>undeclare-prefixes=yes</code>
| <code>normalization-form</code>
| Specifies a normalization form. BaseX supports Form C (<code>NFC</code>).
| <code>NFC<code>, </code>none</code>
| <code>NFC</code>
| <code>normalization-form=none</code>
| <code>byte-order-mark</code>
| Prints a byte-order-mark before starting serialization.
| <code>yes</code>, <code>no</code>
| <code>no</code>
| <code>byte-order-mark=yes</code>
| <code>escape-uri-attributes</code>
| Escapes URI information in certain HTML attributes<br />Example: <code>&lt;a&nbsp;href="%C3%A4%C3%B6%C3%BC"&gt;äöü&lt;a&gt;</code>
| <code>yes</code>, <code>no</code>
| <code>no</code>
| <code>escape-uri-attributes=yes, method=html</code>
| <code>include-content-type</code>
| Includes a <code>meta</code> content-type element if the result is output as HTML<br />Example: <code>&lt;head&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;&lt;/head&gt;</code>
| <code>yes</code>, <code>no</code>
| <code>no</code>
| <code>include-content-type=yes, method=html</code>
| <code>format</code>
| Turns output formatting on/off, including the conversion of special characters to entities. This flag can be turned off to simplify the handling of plain-text results.
| <code>yes</code>, <code>no</code>
| <code>yes</code>
| <code>format=no</code>
| <code>tabulator</code>
| Uses tab characters (<code>\t</code>) for indenting elements.
| <code>yes</code>, <code>no</code>
| <code>no</code>
| <code>tabulator=yes</code>
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu