Documentation
W3C Conformance & Benchmarks
Rigorously validated against official W3C XML test suites and benchmarked for streaming and tree throughput.
W3C Test Suite
oxml integrates the official W3C XML Conformance Test Suite (xmlts20130923) directly into automated CI:
- Automated test runner downloads and verifies official XML 1.0 test cases.
- Validates well-formedness, entity expansion limits, and character encodings (UTF-8, UTF-16).
- Rejects non-well-formed XML documents with deterministic diagnostic locations.
Throughput Benchmarks
Streaming event parsing throughput measured with Criterion on standard datasets (10 MB XML):
| Engine | Safety | Throughput (MB/s) | Relative Speed | | : --- | : --- | : --- | : --- | | oxml (SWAR) | 100% Safe | 680 MB/s | 1.0x (Baseline) | | quick-xml | Safe mode | 455 MB/s | 0.67x | | roxmltree | Safe DOM | 310 MB/s | 0.46x |
Memory Footprint
Generational arena recycling bounds memory consumption even during heavy tree modifications, preventing allocator fragmentation.