Find
C
ase-sensitive
R
egexp search
Path
comm-central
/
third_party
/
rust
/
quick-xml
/
src
/
events
Navigation
Enable keyboard shortcuts
Name
Description
Size
attributes.rs
Xml Attributes module Provides an iterator over attributes key/value pairs
82101
mod.rs
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 ```xml <name attr="value">Inner text</name> ``` consists of the three events `Start`, `Text` and `End`. 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. See [`Event`] for a list of all possible events. # Reading When reading a XML stream, the events are emitted by [`Reader::read_event`] and [`Reader::read_event_into`]. You must listen for the different types of events you are interested in. See [`Reader`] for further information. # Writing 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. See [`Writer`] for further information. [`Reader::read_event`]: crate::reader::Reader::read_event [`Reader::read_event_into`]: crate::reader::Reader::read_event_into [`Reader`]: crate::reader::Reader [`Writer`]: crate::writer::Writer [`Event`]: crate::events::Event
38377