Changes

Jump to navigation Jump to search
50 bytes added ,  06:24, 7 February 2012
no edit summary
* by setting the [[Options#SERIALIZER|SERIALIZER]] option before running a query,
* by setting the [[Options#EXPORTER|EXPORTER]] option before exporting a database, or
* by setting them as [[REST#Query_Parameters|REST]] query parameters (introduced with {{Version|7.0}}).
==Parameters==
The following table gives a brief summary of all serialization parameters recognized by BaseX. For details, please refer to official specification.
| Specifies the serialization method:
* <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 types are output in their ''raw'' form, i.e., without modifications. For all other types, the items’ string values are returned. No indentation takes place, and and no characters 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>
|- valign="top"
| <code>newline</code>
| Specifies the type of newline to be used as end-of-line marker. Introduced with {{Version|7.1}}
| <code>\n</code>, <code>\r\n</code>, <code>\r</code>
| ''system dependent''
| <code>newline=\r\n</code>
|}
 
=Recent Changes=
 
==Version 7.1==
 
* Added: {{Mono|newline}} parameter
 
==Version 7.0==
 
* Added: Serialization parameters added to [[REST API]]; JSON/JsonML/raw methods
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu