fn next_significant_event(reader: &mut EventReader<impl Read>) -> Result<XmlEvent> {
    loop {
        match reader.next()? {
            XmlEvent::StartDocument { .. }
            | XmlEvent::ProcessingInstruction { .. }
            | XmlEvent::Whitespace { .. }
            | XmlEvent::Comment(_) => { /* skip */ }
            other => return Ok(other),
        }
    }
}
/// Reads the next XML event from the underlying reader, skipping events we're not interested in.
Reads the next XML event from the underlying reader, skipping events we're not interested in.
Reads the next XML event from the underlying reader skipping events we ' re not interested in .
fn next_significant_event(reader: &mut EventReader<impl Read>) -> Result<XmlEvent> {
    loop {
        match reader.next()? {
            XmlEvent::StartDocument { .. }
            | XmlEvent::ProcessingInstruction { .. }
            | XmlEvent::Whitespace { .. }
            | XmlEvent::Comment(_) => { /* skip */ }
            other => return Ok(other),
        }
    }
}
fn next_significant_event ( reader : & mut EventReader < impl Read > ) -> Result < XmlEvent > { loop { match reader . next ( ) ? { XmlEvent :: StartDocument { .. } | XmlEvent :: ProcessingInstruction { .. } | XmlEvent :: Whitespace { .. } | XmlEvent :: Comment ( _ ) => { /* skip */ } other => return Ok ( other ) , } } }
Reads the next XML event from the underlying reader, skipping events we're not interested in.
Reads the next XML event from the underlying reader skipping events we ' re not interested in .
reader
&mut EventReader<impl Read>