Core concepts of roxmltree
masterroxmltree represents an XML document as a read-only tree. This design choice allows for significant optimizations when the primary goal is data retrieval rather than document modification.
Key characteristics include:
- Read-only: The tree cannot be modified after parsing.
- Position Preserving: By default,
roxmltreekeeps all node and attribute positions from the original document, allowing you to retrieve them easily. - Zero Unsafe: The library forbids
unsafecode and is designed to never panic. - Zero Dependencies: It has no external dependencies.
- Parsing Behavior: It aims to mimic the behavior of Python's
lxml.