Struct minidom::convert::ElementEmitter
source · pub struct ElementEmitter<'a>(_);
Expand description
A struct which is used for emitting Element
s and text nodes into an Element
without
exposing more functionality than necessary.
Implementations§
source§impl<'a> ElementEmitter<'a>
impl<'a> ElementEmitter<'a>
sourcepub fn new(root: &'a mut Element) -> ElementEmitter<'a>
pub fn new(root: &'a mut Element) -> ElementEmitter<'a>
Creates a new ElementEmitter
.
sourcepub fn append_child(&mut self, element: Element)
pub fn append_child(&mut self, element: Element)
Appends an Element
to the target.
sourcepub fn append_text_node(&mut self, text: String)
pub fn append_text_node(&mut self, text: String)
Appends a text node to the target.