diff --git a/minidom/src/tree_builder.rs b/minidom/src/tree_builder.rs index b991629c..5700d36a 100644 --- a/minidom/src/tree_builder.rs +++ b/minidom/src/tree_builder.rs @@ -97,7 +97,7 @@ impl TreeBuilder { fn process_text(&mut self, text: String) { if self.depth() > 0 { let top = self.stack.len() - 1; - self.stack[top].append_text_node(text); + self.stack[top].append_text(text); } }