Expand description
§XML Streamed Objects – serde-like parsing for XML
This crate provides the traits for parsing XML data into Rust structs, and vice versa.
While it is in 0.0.x versions, many features still need to be developed, but rest assured that there is a solid plan to get it fully usable for even advanced XML scenarios.
XSO is an acronym for XML Stream(ed) Objects, referring to the main field of use of this library in parsing XML streams like specified in RFC 6120.
Re-exports§
pub use text::TextCodec;
pub use asxml::PrintRawXml;
Modules§
- asxml
- Generic iterator type implementations
- error
- Error types for XML parsing
- fromxml
- Generic builder type implementations
- minidom_
compat minidom
- Implementations of traits from this crate for minidom types
- text
- Convert data to and from XML text
Structs§
- Context
- Parsing context for
FromEventsBuilder
Enums§
- Item
- Serialisable piece of XML
- Unknown
Attribute Policy - Control how unknown attributes are handled
- Unknown
Child Policy - Control how unknown child elements are handled
Traits§
- AsOptional
XmlText - Specialized variant of
AsXmlText
. - AsXml
- Trait allowing to iterate a struct’s contents as serialisable
Item
s. - AsXml
Text - Trait to convert a value to an XML text string.
- From
Events Builder - Trait for a temporary object allowing to construct a struct from
rxml::Event
items. - FromXml
- Trait allowing to construct a struct from a stream of
rxml::Event
items. - From
XmlText - Trait allowing to convert XML text to a value.
Functions§
- from_
bytes - Parse a value from a byte slice containing XML data
- from_
reader std
- Parse a value from a
io::BufRead
- is_
xml_ whitespace - Test if a string contains exclusively XML whitespace
- to_vec
- Serialize a value to UTF-8-encoded XML
- transform
- Transform a value into another value via XML
- try_
from_ element Deprecated minidom
- Attempt to convert a
minidom::Element
into a type implementingFromXml
, fallably.