Skip to main content

yaml_to_xml

Function yaml_to_xml 

Source
pub fn yaml_to_xml(input: &str) -> Result<String, Box<dyn Error>>
Expand description

Converts YAML to XML via the canonical hub.

ยงExamples

use sheeter_engine::yaml_to_xml;
let xml = yaml_to_xml("- a: 1\n").unwrap();
assert!(xml.contains("<item>"));