13 releases (8 breaking)

✓ Uses Rust 2018 edition

new 0.10.1 Jul 7, 2020
0.10.0 Jan 5, 2020
0.9.0 Dec 20, 2019
0.8.0 Feb 7, 2018
0.2.1 Aug 19, 2015

#2 in #parse

Download history 1434/week @ 2020-03-23 1365/week @ 2020-03-30 1487/week @ 2020-04-06 1342/week @ 2020-04-13 2029/week @ 2020-04-20 2315/week @ 2020-04-27 1495/week @ 2020-05-04 2009/week @ 2020-05-11 1753/week @ 2020-05-18 1735/week @ 2020-05-25 2429/week @ 2020-06-01 2156/week @ 2020-06-08 2355/week @ 2020-06-15 1865/week @ 2020-06-22 2183/week @ 2020-06-29 2191/week @ 2020-07-06

8,274 downloads per month
Used in 50 crates (24 directly)

MIT license

19KB
358 lines

xmltree-rs

Documention

A small library for parsing an XML file into an in-memory tree structure.

Not recommended for large XML files, as it will load the entire file into memory.

https://crates.io/crates/xmltree

Usage

Add the following to your Cargo.toml file:

[dependencies]
xmltree = "0.10"

Feature-flags

  • attribute-order - change the data structure that stores attributes into one that keeps a consistent order. This changes the type definition and adds another dependency.

Compatability with xml-rs

This crate will export some types from the xml-rs crate. If your own crate also uses the xml-rs crate, but with a different version, the types may be incompatible. One way to solve this is to only use the exported types, but sometimes that is not always possible. In those cases you should use a version of xmltree that matches the version of xml-rs you are using:

xml-rs version xmltree version
0.8 0.10
0.7 0.8
0.6 0.6

Example

See the documentation for some examples:

https://docs.rs/xmltree/

Dependencies

~230KB