PhoenixmlDb.XQuery
SerializationOptions
Serialization options for XQuery output, corresponding to the declare option output:* declarations in the XQuery prolog.
#SerializationOptions
Namespace: PhoenixmlDb.XQuery
Serialization options for XQuery output, corresponding to the declare option output:* declarations in the XQuery prolog.
#Properties
| Name | Description |
|---|---|
AdaptiveQuoteStrings
|
When true and the method is , a top-level atomic string is serialized quoted ("simple string") per the W3C adaptive serialization method. Defaults to false so the string-in/string-out facade keeps returning bare strings; only the conformance harness opts in. |
AllowDuplicateNames
|
Whether to allow duplicate key names in JSON output. When true, duplicate keys are emitted as-is. When false (default), SERE0022 is raised. |
CdataSectionElements
|
Set of element QNames whose text content should be wrapped in CDATA sections. |
CharacterMaps
|
Character maps for use-character-maps parameter. Keys are single characters, values are their replacement strings. |
Default
|
Default serialization options (adaptive method, no indent). |
DoctypePublic
|
The doctype-public serialization parameter (public identifier for the emitted DOCTYPE). Null means no public identifier was requested. |
DoctypeSystem
|
System identifier for the DOCTYPE declaration. |
Encoding
|
Character encoding for the output (e.g., "UTF-8", "UTF-16"). |
EscapeUriAttributes
|
The escape-uri-attributes serialization parameter (HTML/XHTML methods). When true (the default), the values of URI-valued attributes are %-escaped. |
ForceXmlDeclaration
|
When true, the XML declaration (<?xml ...?>) is emitted even when the serialized item is a bare element rather than a document node. The XSLT/XQuery Serialization spec emits the declaration for the result regardless of whether the top-level item is a document node, unless omit-xml-declaration is yes; the engine's default (declaration only for document nodes) keeps the string-in/string-out facade clean, so this opt-in is set when omit-xml-declaration is explicitly no or a standalone value is requested (QT3 method-xml K2-Serialization-18/22/23). |
HtmlVersion
|
HTML version for the html output method (e.g., 5.0). |
IncludeContentType
|
The include-content-type serialization parameter (HTML/XHTML methods). When true (the default), a <meta> content-type declaration is injected into the <head> element. Defaults to true. |
Indent
|
Whether to indent the output for readability. |
ItemSeparator
|
Separator inserted between items in a sequence. |
JsonNodeOutputMethod
|
Output method used when serialising a node embedded in a JSON value (XSLT/XQuery Serialization §11.1). Defaults to ; "text" yields the node's string-value only (no markup), and "html" uses the HTML output method. QT3 Serialization-json-52 covers "text". |
MediaType
|
The media-type serialization parameter, used when injecting the HTML content-type <meta> element. Defaults to text/html for the HTML method. |
Method
|
The output method (xml, json, text, adaptive). |
NormalizationForm
|
Unicode normalization form applied to string output: "NFC", "NFD", "NFKC", "NFKD", or "none" (default). Per the serialization spec, character-map substitutions happen after normalization, so replacements themselves are not re-normalised. |
OmitXmlDeclaration
|
Whether to omit the XML declaration from XML output. |
Standalone
|
Standalone declaration: "yes", "no", or "omit". |
SuppressIndentation
|
Set of element QNames (in Q{uri}local or bare local-name form) whose immediate content must not be re-indented when is on, per the suppress-indentation serialization parameter. Null means no suppression. |
Version
|
The XML version emitted in the XML declaration ("1.0" or "1.1"). Null means the serializer's default (1.0). |