fn parse_report_xml(xml: String) -> std::io::Result<DMARCAggregateReport> {
    let doc = roxmltree::Document::parse(&xml).unwrap();

    match dmarcreport::DMARCAggregateReport::process_report(&doc.root()) {
        Ok(report) => Ok(report),
        Err(e) => {
            eprintln!("Something went wrong 1: {}", e);
            exit(1);
        }
    }
}
/**
 * parse the Aggregate report XML into a DMARCAggregateReport instance
 */
parse the Aggregate report XML into a DMARCAggregateReport instance
parse the Aggregate report XML into a DMARCAggregateReport instance
fn parse_report_xml(xml: String) -> std::io::Result<DMARCAggregateReport> {
    let doc = roxmltree::Document::parse(&xml).unwrap();
    match dmarcreport::DMARCAggregateReport::process_report(&doc.root()) {
        Ok(report) => Ok(report),
        Err(e) => {
            eprintln!("Something went wrong 1: {}", e);
            exit(1);
        }
    }
}
fn parse_report_xml ( xml : String ) -> std :: io :: Result < DMARCAggregateReport > { let doc = roxmltree :: Document :: parse ( & xml ) . unwrap ( ) ; match dmarcreport :: DMARCAggregateReport :: process_report ( & doc . root ( ) ) { Ok ( report ) => Ok ( report ) , Err ( e ) => { eprintln ! ( " " e ) ; exit ( 1 ) ; } } }
parse the Aggregate report XML into a DMARCAggregateReport instance
parse the Aggregate report XML into a DMARCAggregateReport instance
xml
String