{"id":37023595,"url":"https://github.com/itplr-kosit/validator","last_synced_at":"2026-01-14T02:50:24.311Z","repository":{"id":46137340,"uuid":"108377412","full_name":"itplr-kosit/validator","owner":"itplr-kosit","description":"Validates XML documents with XML Schema and Schematron","archived":false,"fork":false,"pushed_at":"2025-11-14T09:25:36.000Z","size":3146,"stargazers_count":121,"open_issues_count":16,"forks_count":53,"subscribers_count":39,"default_branch":"main","last_synced_at":"2025-11-14T11:27:43.658Z","etag":null,"topics":["einvoice","en16931","java","schematron","ubl","validation","validator","xml","xml-schema","xsd","xsd-schema"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itplr-kosit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-10-26T07:35:40.000Z","updated_at":"2025-11-14T09:25:40.000Z","dependencies_parsed_at":"2025-04-09T18:28:15.254Z","dependency_job_id":"f74c90c3-1261-4d62-ab89-538158b5f46b","html_url":"https://github.com/itplr-kosit/validator","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/itplr-kosit/validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itplr-kosit%2Fvalidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itplr-kosit%2Fvalidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itplr-kosit%2Fvalidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itplr-kosit%2Fvalidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itplr-kosit","download_url":"https://codeload.github.com/itplr-kosit/validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itplr-kosit%2Fvalidator/sbom","scorecard":{"id":477006,"data":{"date":"2025-08-11","repo":{"name":"github.com/itplr-kosit/validator","commit":"5184f86c5e2136ad1b167ef7e6465df7efa6bbb0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"0 commit(s) and 14 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: libs/de/kosit/validationtool/packaged-test-scenarios/1.0.2/packaged-test-scenarios-1.0.2.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.5.0 not signed: https://api.github.com/repos/itplr-kosit/validator/releases/84824770","Warn: release artifact v1.4.2 not signed: https://api.github.com/repos/itplr-kosit/validator/releases/43292630","Warn: release artifact v1.4.1 not signed: https://api.github.com/repos/itplr-kosit/validator/releases/35556130","Warn: release artifact v1.4.0 not signed: https://api.github.com/repos/itplr-kosit/validator/releases/32275290","Warn: release artifact v1.3.1 not signed: https://api.github.com/repos/itplr-kosit/validator/releases/29500167","Warn: release artifact v1.5.0 does not have provenance: https://api.github.com/repos/itplr-kosit/validator/releases/84824770","Warn: release artifact v1.4.2 does not have provenance: https://api.github.com/repos/itplr-kosit/validator/releases/43292630","Warn: release artifact v1.4.1 does not have provenance: https://api.github.com/repos/itplr-kosit/validator/releases/35556130","Warn: release artifact v1.4.0 does not have provenance: https://api.github.com/repos/itplr-kosit/validator/releases/32275290","Warn: release artifact v1.3.1 does not have provenance: https://api.github.com/repos/itplr-kosit/validator/releases/29500167"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"44 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v","Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-c2jc-4fpr-4vhg","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-mf6x-hrgr-658f","Warn: Project is vulnerable to: GHSA-xrh7-m5pp-39r6","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-x7hr-w5r2-h6wg","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T15:35:33.011Z","repository_id":46137340,"created_at":"2025-08-19T15:35:33.011Z","updated_at":"2025-08-19T15:35:33.011Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["einvoice","en16931","java","schematron","ubl","validation","validator","xml","xml-schema","xsd","xsd-schema"],"created_at":"2026-01-14T02:50:23.747Z","updated_at":"2026-01-14T02:50:24.292Z","avatar_url":"https://github.com/itplr-kosit.png","language":"Java","readme":"# KoSIT Validator\n\n[![Maven Central](https://img.shields.io/maven-central/v/org.kosit/validator)](https://central.sonatype.com/artifact/org.kosit/validator)\n[![Apache 2.0 license](https://img.shields.io/badge/license-Apache%202-blue)](https://www.apache.org/licenses/LICENSE-2.0)\n\n\n## Introduction\n\nThe Validator is an XML validation engine to validate and process XML files in various formats. It basically does the following in order:\n\n1. identify actual XML format \n1. validate the XML file (using schema  and schematron rules)\n1. generate a custom report / extract custom data from the XML file\n1. compute an acceptance status (according the supplied schema and rules)\n\nThe Validator depends on self defined [scenarios](docs/configurations.md) in order to fully configure the whole process.\nIt always creates a [validation report in XML](docs/configurations.md#validators-report). The actual content of the report can also be controlled by the scenario.\n\nSee [architecture](docs/architecture.md) for information about the whole validation process.\n\n\n## Validation configurations\n\nThe Validator is just an engine and does not know anything about XML documents and has no own validation rules.\nValidation rules and details are defined in [validation scenarios](docs/configurations.md) which are used to fully configure the validation process.\nAll configurations are self-contained modules which are deployed and developed on their own.\n\n### Example validation configurations\n\nHere are some public validation configurations:\n\n* Validation Configuration for [XRechnung](https://xeinkauf.de/xrechnung/):\n  * Source code is available on [GitHub](https://github.com/itplr-kosit/validator-configuration-xrechnung)\n  * [Releases](https://github.com/itplr-kosit/validator-configuration-xrechnung/releases) can also be downloaded\n* Validation Configuration for [Peppol BIS Billing](https://docs.peppol.eu/poacc/billing/3.0/):\n  * Source code is available on [GitHub](https://github.com/itplr-kosit/validator-configuration-bis)\n  * [Releases](https://github.com/itplr-kosit/validator-configuration-bis/releases) can also be downloaded\n* Validation Configuration for [XGewerbeanzeige](https://xgewerbeanzeige.de/)\n  * Source code is available on [GitHub](https://github.com/itplr-kosit/validator-configuration-xgewerbeanzeige)\n  * [Releases](https://github.com/itplr-kosit/validator-configuration-xgewerbeanzeige/releases) can also be downloaded\n\n## Usage\n\nThe Validator can be used in three different ways:\n\n* as standalone application running from the CLI\n* as library embedded within a custom application\n* as a daemon providing an http interface\n\n### Standalone Command Line Interface (CLI)\n\n**Important hint**: since v1.5.1 the filename has been changed from `validationtool-*` to `validator-*`\n\nThe general way using the CLI is:\n\n```shell\njava -jar validator-\u003cversion\u003e-standalone.jar -s \u003cscenario-config-file\u003e [-r \u003crepository-path\u003e]\n[OPTIONS] [FILE] [FILE] [FILE] ...\n```\n\nThe help option displays further CLI options to customize the process:\n\n```shell\njava -jar validator-\u003cversion\u003e-standalone.jar --help\n```\n\nA concrete example with a specific Validator configuration can be found on \n[validator-configuration-bis](https://github.com/itplr-kosit/validator-configuration-bis)\n\nThe [CLI documentation](./docs/cli.md) shows further configuration options.\n\n### Application User Interface (API / embedded usage)\n\nThe Validator can also be used in own Java Applications via the API. An example use of the API as follows:\n\n```java\nURL scenarios = this.getClass().getClassLoader().getResource(\"scenarios.xml\");\nConfiguration config = Configuration.load(scenarios.toURI()).build(ProcessorProvider.getProcessor());\nCheck validator = new DefaultCheck(config);\n\nInput document = InputFactory.read(testDocument);\nResult report = validator.checkInput(document);\n\n// examine the result here\n```\n\nThe  [API documentation](./docs/api.md) shows further configuration options.\n\n**Note:** With Java 11+, you need to include a dependency to `org.glassfish.jaxb:jaxb-runtime` in your project explicitly,\nas that dependency is marked `optional` in this project and will thus not be resolved transitively.\n\n### Daemon-Mode\n\nYou can also start the validator as a HTTP-Server. Just start it in _Daemon-Mode_ with the `-D` option.\n\n```shell\njava -jar  validator-\u003cversion\u003e-standalone.jar  -s \u003cscenario-config-file\u003e -D\n```\n\n\nThe [daemon documentation](./docs/daemon.md) shows more usage details and further configuration options.\n\n## Packages\n\nThe Validator distribution contains the following artifacts:\n\n1. **validator-`\u003cversion\u003e`.jar**: Java library for embedded use within an application\n1. **validator-`\u003cversion\u003e`-standalone.jar**: Uber-JAR for standalone usage containing all dependencies in one jar file. This file comes with JAXB *embedded* and can be used with Java \u003e= 11)\n1. **libs/**: directory containing all (incl. optional) dependencies of the validator\n\n## Installation\n\nDownload from the following sources is possible:\n\n* GitHub releases: https://github.com/itplr-kosit/validator/releases\n    * This release contains a ZIP file with all the different JAR variants\n* Maven Central with the below coordinates (replace `x.y.z` with the actual version to use)\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.kosit\u003c/groupId\u003e\n    \u003cartifactId\u003evalidator\u003c/artifactId\u003e\n    \u003cversion\u003ex.y.z\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nTo use the standalone version with Maven coordinates, add the respective classifier:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.kosit\u003c/groupId\u003e\n    \u003cartifactId\u003evalidator\u003c/artifactId\u003e\n    \u003cversion\u003ex.y.z\u003c/version\u003e\n    \u003cclassifier\u003estandalone\u003c/classifier\u003e\n\u003c/dependency\u003e\n```\n\n## Roadmap\n\nThis section describes the next steps planned in the Validator development.\n\n* Version 1.5.x is frozen - no maintainance, no support\n* Version 1.6.x - no feature development, but maintainance and best-effort support\n* Develop version 2.0.0 which will include major API incompatibilities - Winter 2025 \n    * Rework scenarios.xml\n    * Rework report output engine\n    * Change the output type to [XVRL](https://github.com/xproc/xvrl)-based document types \u0026rarr; this implies that existing XSL templates need to be updated\n    * Consider multi Schematron engine support\n    * Extract the daemon mode into its own submodule\n    * Consider extracting the CLI into its own submodule\n* The release of version 2.0.0 implies a feature-freeze for version 1.6\n\n## Authors \u0026 Acknowledgements\n\nWe are thankful to numerous third-party [contributors](https://github.com/itplr-kosit/validator/graphs/contributors).\n\n## License\n\nThe Validator is licensed under the [Apache 2.0 license](https://www.apache.org/licenses/LICENSE-2.0).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitplr-kosit%2Fvalidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitplr-kosit%2Fvalidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitplr-kosit%2Fvalidator/lists"}