fn next(&mut self) -> Result<XmlEvent> {
        let next = self.buffered_reader.next()?;

        match next {
            XmlEvent::StartElement { .. } => {
                self.depth += 1;
            }
            XmlEvent::EndElement { .. } => {
                self.depth -= 1;
            }
            _ => {}
        }
        debug!("Fetched {:?}", next);
        Ok(next)
    }
/// Gets the XML event at the cursor and advances the cursor.
Gets the XML event at the cursor and advances the cursor.
Gets the XML event at the cursor and advances the cursor .
fn next(&mut self) -> Result<XmlEvent> {
        let next = self.buffered_reader.next()?;
        match next {
            XmlEvent::StartElement { .. } => {
                self.depth += 1;
            }
            XmlEvent::EndElement { .. } => {
                self.depth -= 1;
            }
            _ => {}
        }
        debug!("Fetched {:?}", next);
        Ok(next)
    }
fn next ( & mut self ) -> Result < XmlEvent > { let next = self . buffered_reader . next ( ) ? ; match next { XmlEvent :: StartElement { .. } => { self . depth += 1 ; } XmlEvent :: EndElement { .. } => { self . depth -= 1 ; } _ => { } } debug ! ( " " next ) ; Ok ( next ) }
Gets the XML event at the cursor and advances the cursor.
Gets the XML event at the cursor and advances the cursor .
&mut self