use crate::arena::NodeId;
use crate::document::Document;
pub trait XmlVisitor {
fn visit_enter_document(&mut self, _doc: &Document) -> bool {
true
}
fn visit_exit_document(&mut self, _doc: &Document) -> bool {
true
}
fn visit_enter_element(&mut self, _doc: &Document, _element: NodeId) -> bool {
true
}
fn visit_exit_element(&mut self, _doc: &Document, _element: NodeId) -> bool {
true
}
fn visit_text(&mut self, _doc: &Document, _text: NodeId) -> bool {
true
}
fn visit_comment(&mut self, _doc: &Document, _comment: NodeId) -> bool {
true
}
fn visit_declaration(&mut self, _doc: &Document, _declaration: NodeId) -> bool {
true
}
fn visit_unknown(&mut self, _doc: &Document, _unknown: NodeId) -> bool {
true
}
}