Skip to main content

tsv_to_xml

Function tsv_to_xml 

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

Converts TSV to XML via the canonical hub.

ยงExamples

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