xmltree-ns

Crates.ioxmltree-ns
lib.rsxmltree-ns
version0.13.0
created_at2026-01-22 03:24:29.95457+00
updated_at2026-01-22 03:24:29.95457+00
descriptionParse an XML file into a simple tree-like structure
homepage
repositoryhttps://github.com/kaidokert/xmltree-rs
max_upload_size
id2060659
size49,915
Kaido Kert (kaidokert)

documentation

https://docs.rs/xmltree-ns/

README

xmltree-rs

[!WARNING] This is a fork of the "real" xmltree with support for attribute namespaces. For more information, see this issue: https://github.com/eminence/xmltree-rs/issues/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-ns = "0.13"

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 crate

This crate will export some types from the xml crate. If your own crate also uses the xml 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 you are using:

xml version xmltree version
1 0.13

Example

See the documentation for some examples:

https://docs.rs/xmltree-ns/

Commit count: 110

cargo fmt