XML Conformance
Lanexio Parser implements XML 1.0 5th Edition with optional DTD validation. The conformance suite draws from the W3C XML Conformance Test Suite and libxml2 test corpus.
Test results
Section titled “Test results”133 tests pass across three categories:
- Well-formed fixtures — valid XML documents accepted, parse trees are well-formed and lossless
- Not-well-formed fixtures — malformed documents flag errors correctly
- libxml2 valid/ — production XML documents parsed cleanly with well-formed trees
The parser handles multi-byte character encodings (UTF-8, EUC-JP, Shift_JIS, ISO-2022-JP) and correctly emits errors for invalid byte sequences.
DTD validation
Section titled “DTD validation”parseXml accepts an optional ExternalResolver for DTD fetching. When provided, the parser validates DTD entities, notations, and element declarations. When absent — the default — it parses the document without validation.
Four-axis bar
Section titled “Four-axis bar”| Axis | Result |
|---|---|
| never-throw | 0 throws across 5,854 corpus files |
| well-formed | corpus WF = 0 |
| lossless | corpus lossless = 0, byte-exact round-trip |
| conformance | 133/133, W3C + libxml2 covered |