fn text(data: String) -> Node {
    Node {
        children: Vec::new(),
        node_type: NodeType::Text(data),
    }
}
/* Constructors for Test and Element nodes, making it easy to create
new nodes. */
Constructors for Test and Element nodes, making it easy to create
new nodes.
Constructors for Test and Element nodes making it easy to create new nodes .
fn text(data: String) -> Node {
    Node {
        children: Vec::new(),
        node_type: NodeType::Text(data),
    }
}
fn text ( data : String ) -> Node { Node { children : Vec :: new ( ) , node_type : NodeType :: Text ( data ) , } }
Constructors for Test and Element nodes, making it easy to create
new nodes.
Constructors for Test and Element nodes making it easy to create new nodes .
data
String