endcap-sl-software-ri-gener.../src/main.rs

17 lines
408 B
Rust
Raw Normal View History

2025-01-29 17:12:15 +09:00
use std::fs;
2025-01-29 01:55:23 +09:00
fn main() {
println!("Hello, world!");
2025-01-29 17:12:15 +09:00
let xmlfile = fs::read_to_string("./csr.xml").unwrap();
let doc = roxmltree::Document::parse_with_options(
&xmlfile,
roxmltree::ParsingOptions {
allow_dtd: true,
nodes_limit: u32::MAX,
},
)
.unwrap();
println!("Parsed: {:#?}", doc);
println!("Root: {:?}", doc.root_element());
2025-01-29 01:55:23 +09:00
}