xml-data

Crates.ioxml-data
lib.rsxml-data
version0.0.1
sourcesrc
created_at2020-01-06 16:16:28.517128
updated_at2020-01-06 16:16:28.517128
descriptionGeneric XML parsing and serializing
homepagehttps://github.com/stbuehler/rust-xml-data
repositoryhttps://github.com/stbuehler/rust-xml-data
max_upload_size
id195841
size40,142
venus-developers (github:ipfs-force-community:venus-developers)

documentation

https://docs.rs/xml-data

README

Travis Build Status crates.io MIT licensed

This library provides a generic interface to parse XML data: a user might implement how to parse and serialize their data (possibly derived), while others will implement adaptors for generic XML parsers.

This is similar to what serde does; but serde assumes your data consists of "native data" (strings, integers, floats, ...) and nested data (lists and maps). XML doesn't map to this very well; while there are some adaptors, they often accept lots of structually different input data: an element might be interpreted as map in serde. A subelement with text now can be interpreted as key (<key>value</key>), but an attribute is interpreted the same way <... key="value">.

This library focuses only on XML instead, and provides a more strict interface with clearly defined output.

For the following XML handling crates adaptors are included if enabled through the equally named features:

If the derive feature is enabled the following traits can be derived:

  • Element, parser::Element, serializer::Element)
  • Inner, parser::Inner, serializer::Inner)

The documentation for master is located at https://stbuehler.github.io/rustdocs/xml-data/xml-data/; released versions are documented at https://docs.rs/xml-data.

Commit count: 15

cargo fmt