https://github.com/oliver-loeffler/xmlvalidation
Demo how XML validation works with Java11+
https://github.com/oliver-loeffler/xmlvalidation
java java-11 java-xml xml-validation
Last synced: 9 months ago
JSON representation
Demo how XML validation works with Java11+
- Host: GitHub
- URL: https://github.com/oliver-loeffler/xmlvalidation
- Owner: Oliver-Loeffler
- License: mit
- Created: 2020-01-30T07:13:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-01T19:19:41.000Z (over 5 years ago)
- Last Synced: 2025-03-14T06:13:08.423Z (about 1 year ago)
- Topics: java, java-11, java-xml, xml-validation
- Language: Java
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# An example Java 11 project using Maven and JUnit 5 to demonstrate XML validation
## Javadoc here:
1. https://docs.oracle.com/en/java/javase/13/docs/api/java.xml/javax/xml/validation/package-summary.html
## Goals
* Learn how to setup Java 13 in Travis
* Learn how to create a module in Java >= 11 and how to have Maven running tests properly
(right now, when module is defined, test will fail on running `mvn verify` due to
lack of classes visibility)
* Move to Java 13 and play with new String literals
* Create an example for safe XML validation using Java (at least so that Sonar does
not complain ... however, considering JAXP documentation)
* https://docs.oracle.com/javase/8/docs/technotes/guides/security/jaxp/jaxp.html
* https://docs.oracle.com/javase/tutorial/jaxp/properties/backgnd.html
* My use case:
* run multiple validations against the same schema over and over
* It would be okay to keep the schema in memory, it is pretty large
* requires input (a) from file and (b) from string
* Instead of exceptions as result types, something more suitable shall be there as all processing shall happen within streams and completable futures