3 ms·
The "producing valid documents" issue is solved by running the output through the schema before, or immediately after it's saved, and throwing an error if the c
by zdw 13y ago
The "producing valid documents" issue is solved by running the output through the schema before, or immediately after it's saved, and throwing an error if the code has generated an invalid document.
- acdha 13y agoAgain, this approach does not work on projects where you can't immediately reject invalid documents. In many cases, this is unacceptable from a business standpoint and so you're forced to attempt to salvage minor conformance problems.