NodeFactory

Trait NodeFactory 

Source
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§

Source

fn make_node(&self, content: XmlContent) -> NodeRef

Creates a new node with the given content.

Implementors§