In case a particular node is mandatory, the error described is for the next sibling. In case there exists a error for the next sibling as well. That error message is supressed. On resolving the first issue, and running the validation again, the second
error is thrown. Is there a way we can set options on the schema validation, so that we can receive both errors at the same time.
For example we have a xml with the following nodes
Here NM101 is a mandatory node and NM102 has type as integer. In case we receivethe below xml
Error: The element 'NM1' has invalid child element 'NM102'. List of possible elements expected: 'NM101'
But the error for NM102 is now supressed and can be retrieved only when NM101 is present. Is there a way that all errors can be reported at the same time ?Swapnil Kasodekar
View Complete Post