4 releases

0.1.2 Jul 26, 2024
0.1.1 Jul 25, 2024
0.1.0 Jul 25, 2024
0.0.1 Apr 17, 2024

#498 in Encoding

39 downloads per month
Used in 4 crates (via xmpp-parsers)

MPL-2.0 license

165KB
3.5K SLoC

xso -- serde-like parsing for XML

What’s this?

This crate provides the traits for parsing XML data into Rust structs, and vice versa. You can do things like:

#[derive(FromXml, AsXml)]
#[xml(namespace = "urn:example", name = "element")]
pub struct Foo;

For more information, see its documentation on docs.rs for the latest release or the documentation for the main branch on our servers.

What license is it under?

MPL-2.0 or later, see the LICENSE file.


lib.rs:

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.

Dependencies

~1–1.6MB
~34K SLoC