Sample code for 30+ languages & platforms
Rust

Load XML from Local FilePath

Demonstrates how to load XML from a local XML file.

Chilkat Rust Downloads

Rust

let xml = chilkat::Xml::new();

// Pass either an absolute file path, or a file path relative from the current working directory of the caller.
if xml.load_xml_file("qa_data/hamlet.xml").is_err() {
    println!("{}", xml.last_error_text());
    return;
}

println!("Success.");