The XPact XML parser project
XPact is developed in the open. The source, the test reports and every bug report are on GitHub, and the website itself lives in the same repository, in website/.
Source code ↗
The incremental-test branch: parser, C library, tests and this website.
Issues ↗
One issue per bug, finding or task, each with a report and its evidence.
Project board ↗
What is being worked on: Todo → In progress → In review → Done.
Reports ↗
Investigations, fixes and test runs, one folder per issue.
Plan ↗
The weekly plan and the list of what is left to do.
Website docs ↗
Architecture, REST API, security and how to run this site.
Test automation ↗
11 test areas in Python: W3C, fuzzing, differential testing against Expat, security, memory, large files
Parser fixes ↗
Conformance fixes in the Eiffel parser: W3C output test from 359 to 399 of 432
DevOps: build and CI ↗
Windows native build (MSVC), PowerShell build scripts, Jenkins pipelines and SonarQube findings
This website ↗
React + TypeScript front end, ASP.NET Core API with an isolated parser worker, xUnit tests
Website roadmap
| Phase | Deliverable | Status | Notes |
|---|---|---|---|
| 1 | XPact native library works reliably | ✅ done | W3C 2,585 cases, 0 failed; DLL smoke tests |
| 2 | ASP.NET Core API can call XPact | ✅ done | Isolated worker process per document |
| 3 | Postman tests for the API | ✅ done | Postman collection, .http file, 19 xUnit end-to-end tests |
| 4 | React website with XML upload | ✅ done | Paste, upload or drop a file |
| 5 | Display parsing errors and results | ✅ done | Code, message, line/column, parser events |
| 6 | Documentation and benchmark pages | ✅ done | Numbers exported from the repository reports |
| 7 | Public deployment and security testing | ⬜ to do | Local security tests done; not deployed yet |
How the website works
- The browser sends your XML to the API.
- The API checks the size and the request rate.
- It starts a separate worker process with a memory cap and a time limit.
- The worker calls
xpact.dlland returns the result as JSON. - The page shows the verdict, the error position and the events.
The website is one client of the parser; XPact does not depend on it. Architecture
Report a problem
Found a document where XPact disagrees with the XML specification or with Expat? Open an issue with the XML, what you expected and what the validator showed. The raw JSON response (under each result) has everything needed.
Open an issue ↗