Class XmlJsonOptions
Options of the xmljson data format.
public sealed class XmlJsonOptions
Inheritance
Properties
Arrays
Paths of the elements that are always a JSON array, even when the document holds one of them:
public IList<string> Arrays { get; }
AttributePrefix
The prefix of an attribute's key. Default @, as Json.NET and WSO2 write it.
public string AttributePrefix { get; set; }
Namespaces
How names carry their namespaces. Default .
public XmlJsonNamespaces Namespaces { get; set; }
Plural
The plural-wrapper rule, off by default: a parent named as the English plural of its children's name
public bool Plural { get; set; }
Prefixes
Prefixes for the namespaces of JSON to XML by a schema, prefix to namespace URI ("o" = "urn:orders").
public IDictionary<string, string> Prefixes { get; }
Root
The root element of JSON to XML. Without it the JSON is an object of one key, and that key is the root; with it
public string? Root { get; set; }
Schema
Path of the XSD that describes the documents: which elements repeat, the types of values, nillable elements.
public string? Schema { get; set; }
SchemaRoot
The directory the imports and includes of may read from; a relative one is relative to the
public string? SchemaRoot { get; set; }
SchemaSet
A schema set built in code, in place of ; it is compiled when the format first uses it.
public XmlSchemaSet? SchemaSet { get; set; }
TextKey
The key of an element's text when the element also has attributes or child elements. Default #text, as
public string TextKey { get; set; }