Repository navigation
This major release introduces selectable validation backends, improves performance for large/error-heavy XML validation scenarios, and reorganizes internal modules for maintainability.
Breaking changes
- Heavily reworked the internal package structure to facilitate the validation-backend/performance refactor:
- Helper functionality was split into dedicated modules for paths, files, namespaces, schema management, schema resolution, validation and result reporting.
- Code that imports non-keyword internals directly (although unlikely) may need to update import paths.
Added
- Added selectable validation backends:
autouses the fast lxml-backed validation path when possible and falls back to xmlschema where needed.lxmlforces lxml-backed validation.xmlschemapreserves the richer xmlschema-backed validation path.
- Added validation backend selection at library import time, keyword-call time and through a dedicated Robot Framework keyword.
- Added convenience keywords for inspecting and changing the active validation backend.
- Added generated benchmark reports under
docs/benchmarks/. - Added scenario-level benchmark comparison reports for both
lxmlandxmlschema. - Added backend comparison reports for comparing
lxmlandxmlschemavalidation behavior.
Changed
- Improved validation performance for large XML files and error-heavy scenarios by introducing the lxml-backed validation path.
- Added caching for compiled lxml schemas in the schema manager.
- Refactored validation orchestration into smaller, more focused source modules and classes.
- Split validation internals into focused modules for paths, files, namespaces, schema management, schema resolution, validation execution and result reporting.
- Reorganized unit tests so test modules map directly to the source modules they cover.
- Extended unit and integration coverage for backend selection, validation behavior and refactored internals.
- Improved README structure and added section on use cases for this library.
- Updated README sections on: project structure, validation backends and benchmark reports.
Verified
- Published and verified on TestPyPI and PyPI.
- Unit and integration tests pass against both the TestPyPI and PyPI installation.