12 releases (breaking)

0.10.0 Jan 5, 2020
0.9.0 Dec 20, 2019
0.8.0 Feb 7, 2018
0.6.1 Sep 26, 2017
0.2.1 Aug 19, 2015

#3 in #parse

Download history 1099/week @ 2019-12-02 1220/week @ 2019-12-09 995/week @ 2019-12-16 809/week @ 2019-12-23 858/week @ 2019-12-30 1082/week @ 2020-01-06 993/week @ 2020-01-13 723/week @ 2020-01-20 821/week @ 2020-01-27 1229/week @ 2020-02-03 1004/week @ 2020-02-10 1035/week @ 2020-02-17 1030/week @ 2020-02-24 1314/week @ 2020-03-02 1408/week @ 2020-03-09 1267/week @ 2020-03-16

6,110 downloads per month
Used in 45 crates (20 directly)

MIT license

18KB
355 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"

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

~185KB