* by using the <code>-s</code> flag of the BaseX [[Startup_Options#BaseX|command-line]] clients,
* by setting the [[Options#Query optionsOptions|SERIALIZER]] option before running a query,* by setting the [[Options#Query optionsOptions|EXPORTER]] option before exporting a database,
* by setting them via the [[JAX-RX_API#Query_Parameters|Output Parameter]] of the JAX-RX API,
* by including them in the [[XQuery_3.0#Serialization|prolog of the XQuery expression]] (since XQuery 3.0), or