Skip to main content

write

Function write 

Source
pub fn write(
    json: &Value,
    model: &Model,
    root_type: &str,
) -> Result<Written, Error>
Expand description

Writes JSON of the logical model as an XML document whose root element has the type at root_type (a canonical URL or a type name). Elements are written in definition order, attributes as attributes, the "@type" of a value as xsi:type.