Skip to main content

csv_to_xml

Function csv_to_xml 

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

Converts CSV to XML via the canonical hub.

ยงExamples

use sheeter_engine::csv_to_xml;
let xml = csv_to_xml("a\n1").unwrap();
assert!(xml.contains("<item>"));