Struct xml_writer::XmlWriter [] [src]

pub struct XmlWriter<'a, W: Write> {
    pub pretty: bool,
    pub namespace: Option<&'a str>,
    // some fields omitted
}

The XmlWriter himself

Fields

if true it will indent all opening elements

an XML namespace that all elements will be part of, unless None

Methods

impl<'a, W: Write> XmlWriter<'a, W>
[src]

[src]

Create a new writer, by passing an io::Write

[src]

Write the DTD

[src]

Writes namespace declarations (xmlns:xx) into the currently open element

[src]

Write a self-closing element like

[src]

Write an element with inlined text (escaped)

[src]

Begin an elem, make sure name contains only allowed chars

[src]

End and elem

[src]

Begin an empty elem

[src]

Write an attr, make sure name and value contain only allowed chars. For an escaping version use attr_esc

[src]

Write an attr, make sure name contains only allowed chars

[src]

Write a text, escapes the text automatically

[src]

Raw write, no escaping, no safety net, use at own risk

[src]

Write a CDATA

[src]

Write a comment

[src]

Close all open elems

[src]

Flush the underlying Writer

[src]

Consume the XmlWriter and return the inner Writer

Trait Implementations

impl<'a, W: Write> Debug for XmlWriter<'a, W>
[src]

[src]

Formats the value using the given formatter.