Struct minidom::element::ElementBuilder
[−]
[src]
pub struct ElementBuilder { /* fields omitted */ }
A builder for Element
s.
Methods
impl ElementBuilder
[src]
fn ns<S: Into<String>>(self, namespace: S) -> ElementBuilder
Sets the namespace.
fn attr<S: Into<String>, V: IntoAttributeValue>(
self,
name: S,
value: V
) -> ElementBuilder
self,
name: S,
value: V
) -> ElementBuilder
Sets an attribute.
fn append<T: IntoElements>(self, into: T) -> ElementBuilder
Appends anything implementing IntoElements
into the tree.
fn build(self) -> Element
Builds the Element
.
Trait Implementations
impl IntoElements for ElementBuilder
[src]
fn into_elements(self, emitter: &mut ElementEmitter)
Emits this as a sequence of text nodes and Element
s.