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

#35 in #member

Download history 1939/week @ 2024-11-16 1642/week @ 2024-11-23 1455/week @ 2024-11-30 1223/week @ 2024-12-07 949/week @ 2024-12-14 625/week @ 2024-12-21 419/week @ 2024-12-28 807/week @ 2025-01-04 606/week @ 2025-01-11 580/week @ 2025-01-18 609/week @ 2025-01-25 491/week @ 2025-02-01 926/week @ 2025-02-08 947/week @ 2025-02-15 697/week @ 2025-02-22 802/week @ 2025-03-01

3,519 downloads per month
Used in 7 crates (6 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

~675KB
~14K SLoC