Rust
Rust
Setting XML Tag and Content
See more XML Examples
Demonstrates how to set the tag and content of an XML node.The following XML sample code produces this output:
<abc>123</abc>
Chilkat Rust Downloads
let xml = chilkat::Xml::new();
xml.set_tag("abc");
xml.set_content("123");
println!("{}", xml.get_xml().unwrap_or_default());