Difference between revisions of "Serialization"

From BaseX Documentation
Jump to navigation Jump to search
Line 9: Line 9:
 
* by including them in the [[XQuery_3.0#Serialization|prolog of the XQuery expression]] (since XQuery 3.0), or
 
* by including them in the [[XQuery_3.0#Serialization|prolog of the XQuery expression]] (since XQuery 3.0), or
 
* by specifying them in the XQuery function [[File_Functions#file:write|file:write()]].
 
* by specifying them in the XQuery function [[File_Functions#file:write|file:write()]].
 +
 +
==Parameters==
 +
 +
{| class="wikitable"
 +
|- valign="top"
 +
! width='75' | Parameter
 +
! Description
 +
! width='165' | Examples
 +
|- valign="top"
 +
| <code>[version]</code>
 +
| XML Version (<code>1.0</code> or <code>1.1</code>).
 +
| version=1.0
 +
|}

Revision as of 00:33, 6 February 2011

Serialization parameters define how XQuery items and XML nodes are textually output, i.e., serialized. They have been formalized in the W3C XQuery Serialization 3.0 document. In BaseX, they can be specified in several ways:

Parameters

Parameter Description Examples
[version] XML Version (1.0 or 1.1). version=1.0