Skip to content

std::encoding::xml

Status: experimental

Streaming XML decoder + builder (quick-xml).

API details and source

The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.

Item Canonical signature or declaration Description
Event type Event Start / End / Text / CData / Comment / Eof.
Reader type Reader Pull-style XML reader.
Writer type Writer Streaming XML writer.
encode fn encode(value: json::Value) -> String Serialises a sequence of events to XML text.
escape fn escape(text: String) -> String Escapes XML metacharacters in text.
parse fn parse(source: String) -> Result<json::Value, errors::Error> Parses an XML document into a Vec of events.