Skip to main content

Module xml

Module xml 

Source
Expand description

Hand-written XML support for the small subset WebDAV needs.

Split by concern: escape handles character data, writer assembles elements, and response locates them and exposes the lookups the decoders call. Element is a located element and MissingElement the error raised when a required one is absent.

There is no general XML parser here; the limits of the reader are spelled out in response.

Re-exports§

pub use response::elements;
pub use response::first_element;
pub use response::has_element;
pub use response::require_element;
pub use response::text_of;
pub use writer::XmlWriter;

Modules§

escape
Text and attribute-value escaping.
response
Reading values out of a multistatus body.
writer
A minimal XML writer: open, close, empty, text.

Structs§

Element
An element located in a document: its qualified name and its content.
MissingElement
An element a decode step required but could not find.