Skip to main content

toml_to_xml

Function toml_to_xml 

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

Converts a TOML document to XML.

§Errors

Returns an error if the TOML is malformed.

§Examples

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