Skip to main content

xml_to_tsv

Function xml_to_tsv 

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

Converts XML to TSV, extracting the tabular array if present.

ยงExamples

use sheeter_engine::xml_to_tsv;
let tsv = xml_to_tsv("<root><item><a>1</a></item></root>").unwrap();
assert_eq!(tsv, "a\n1\n");