Skip to content

A fork of `xmltree-rs` to provide attribute namespaces (thanks, Heinenen!)

License

Notifications You must be signed in to change notification settings

raves-project/raves_xmltree

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

108 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xmltree-rs

Warning

This is a fork of the "real" xmltree with support for attribute namespaces. For more information, see this issue: eminence#13

You should use the real xmltree crate instead!

Documentation

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.11"

Feature-flags

  • attribute-order - change the data structure that stores attributes to one that uses insertion order. This changes the type definition and adds another dependency.

  • attribute-sorted - change the data structure that stores attributes to one that uses sorted order. This changes the type definition.

Compatibility 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.11
0.7 0.8
0.6 0.6

Example

See the documentation for some examples:

https://docs.rs/xmltree/

About

A fork of `xmltree-rs` to provide attribute namespaces (thanks, Heinenen!)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%