Description
In JAPI, there is no way to parse, get a result back, but also get validation errors back.
Validation errors come through as diagnostics with isError true.
Calling outputter.getResult() requires that isError is false.
This prevents using validation errors like warnings.
I want to accept "well formed" but "invalid" data, and skip past it to the next input message.
I can't do that with the API like this.
I think I need getResult() to succeed if the errors are only validation errors (or recoverable errors), and give me the infoset.
We should also add a Diagnostic.isValidationError so that I can tell that a diagnostic is not a fatal error easily (currently one must call d.getMessage().contains("Validation Error") which is not a good API.