use svd_parser as svd;
use std::fs::File;
use std::io::Read;
let xml = &mut String::new();
File::open("STM32F30x.svd").unwrap().read_to_string(xml);
println!("{:?}", svd::parse(xml));
Parses an optional child element with the provided name and Parse function
Returns an none if the child doesn’t exist, Ok(Some(e)) if parsing succeeds,
and Err() if parsing fails.