Defines zero-copy XML events used throughout this library.
A XML event often represents part of a XML element. They occur both during reading and writing and are usually used with the stream-oriented API.
For example, the XML element
<name attr="value">Inner text</name>
consists of the three events
They can also represent other parts in an XML document like the
XML declaration. Each Event usually contains further information,
like the tag name, the attribute or the inner text.
Event for a list of all possible events.
Reader for further information.
When writing the XML document, you must create the XML element by constructing the events it consists of and pass them to the writer sequentially.
Writer for further information.
- Xml Attributes module
- An XML declaration (
- A struct to manage
- Opening tag data (
Event::Start), with optional attributes.
- Data from various events (most notably,
Event::Text) that stored in XML in escaped form. Internally data is stored in escaped form
- Event emitted by