# roxmltree

> Represent an XML as a read-only tree.

Source: https://talira.ai/catalog/roxmltree-g2rdq18a
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / xml](https://talira.ai/categories/developer-tools/parsing/xml), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT OR Apache-2.0
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: Yevhenii Reizner (RazrFalcon)

roxmltree parses an XML document into a read-only tree, which makes it fast for reading data out of XML. It resolves element and attribute namespaces and entity and character references, keeps positions, and mimics the parsing behaviour of Python's lxml. It has no dependencies and no unsafe code, and refuses DTDs unless told to allow them, so untrusted input can't trigger entity expansion attacks.

## Links

- GitHub: https://github.com/RazrFalcon/roxmltree
- Docs: https://docs.rs/roxmltree/

## Problems it solves

- read values out of an XML file in Rust without a heavy dependency
- check that an uploaded SVG is well-formed XML with an svg root element
- parse untrusted XML without being exposed to billion laughs entity expansion
- find an element by attribute in an XML document from Rust
- parse XML with namespaces correctly in Rust
- I only need to read XML, not edit or write it
- a pure Rust XML parser with no unsafe code and no dependencies
- get line and column positions for elements in parsed XML

## Features

- read-only tree
- namespace resolution
- entity and character references
- position preserving
- no dependencies
- no unsafe code
- DTDs refused by default

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.45 out of 1.
Signals: maintenance 0.67, adoption 0.55, momentum 0.24, community 0.55, backing 0.20, extensibility 0.00.

- last commit 9 days ago
- 11 commits in the last 90 days
- 544 GitHub stars
- 23 contributors
- created by Yevhenii Reizner (RazrFalcon)
