Skip to main content

has_open_document

Function has_open_document 

Source
fn has_open_document(events: &[Event]) -> bool
Expand description

Walks back through events looking for an unclosed DocumentStart (i.e. one without a matching DocumentEnd after it). Returns true if the parser is still inside a document.