pub trait NodeFactory {
// Required method
fn make_node(&self, content: XmlContent) -> NodeRef;
}Expand description
Factory trait for creating nodes during parsing.
This allows the parser to create either BaseNode or BranchNode trees depending on the context.
Required Methods§
Sourcefn make_node(&self, content: XmlContent) -> NodeRef
fn make_node(&self, content: XmlContent) -> NodeRef
Creates a new node with the given content.