0

I understand XML validation.. but the validator API e.g. one here simply returns a true/false. I need something like ... x tag is now allowed, y attribute is not allowed, z tag is not allowed. Kind of field level validation which provides a list of errors, rather than a true/false. Any way to do it?

I believe use case is strong.. since programmer/tester would need to know what exactly is wrong in XML rather than just a true/false. Thanks.

Apurva Singh
  • 4,534
  • 4
  • 33
  • 42

1 Answers1

0

Can you set an ErrorHandler on a Validator

lance-java
  • 25,497
  • 4
  • 59
  • 101