10 unstable releases (3 breaking)

Uses old Rust 2015

0.9.1 Sep 19, 2016
0.8.1 Aug 16, 2016
0.8.0 Jul 28, 2016
0.6.3 Feb 26, 2016
0.6.0 Oct 2, 2015

#37 in #member

Download history 765/week @ 2024-07-22 736/week @ 2024-07-29 640/week @ 2024-08-05 1443/week @ 2024-08-12 1598/week @ 2024-08-19 2202/week @ 2024-08-26 1958/week @ 2024-09-02 2283/week @ 2024-09-09 1973/week @ 2024-09-16 1254/week @ 2024-09-23 1812/week @ 2024-09-30 1751/week @ 2024-10-07 2655/week @ 2024-10-14 1786/week @ 2024-10-21 1567/week @ 2024-10-28 1693/week @ 2024-11-04

7,716 downloads per month
Used in 8 crates (7 directly)

Custom license

73KB
2K SLoC

Build Status Latest Version Clippy Linting Result

serde-xml

xml deserialization code for the serde crate

current state

  • xml to struct deserialization
  • deserialize bool, int, string from <anytagname>value</anythingelse>
  • deserialize sequences (tuple, array, vector) as struct member
  • deserialize escaped chars (&abcd;)
  • deserialize CDATA
  • deserialize enumerations
  • deserialize arrays of enumerations
  • deserialize errors instead of assertions
  • more deserialize tests
  • parse to dom tree
  • struct to xml serialization

anti-features

I'm currently ignoring quite some stuff that I don't know how to handle in another way

  • ignore namespaces
  • skip xml comments
  • skip xml version tag
  • ignoring xml-attributes

nice to have

  • xsd verification
  • sequences of sequences (how would these even look like in xml?)
  • attributes to collapse xml elements that only contain a single type of element.

Dependencies

~670KB
~14K SLoC