PhoenixmlDb.XQuery
JsonToXmlOptions
The options of fn:json-to-xml (XPath and XQuery Functions and Operators 3.1 §17.4.3).
#JsonToXmlOptions
Namespace: PhoenixmlDb.XQuery
The options of
fn:json-to-xml
(XPath and XQuery Functions and Operators 3.1 §17.4.3).
#Properties
| Name | Description |
|---|---|
BaseUri
|
The base URI of the document that is built; null for none. |
Default
|
The options used when none are given: those of fn:json-to-xml called with no options. |
Duplicates
|
What to do with a repeated key. JsonDuplicateKeys.Retain by default, as the function's is. |
Escape
|
Whether strings keep their JSON escapes. With true, a string that has any is written escaped and marked escaped="true" (a key, escaped-key="true"), so that a character XML cannot hold survives a round trip. With false, the default, escapes are decoded and such a character becomes U+FFFD or goes to JsonToXmlOptions.Fallback.
|
Fallback
|
Called with the escaped form (\uXXXX) of each character that XML 1.0 cannot hold; what it returns takes the character's place. Null, the default, puts U+FFFD there. It cannot be combined with JsonToXmlOptions.Escape.
|
Liberal
|
Whether input that departs from the JSON grammar is accepted where the parser can make sense of it (a trailing comma). False by default. |