I am validating an XML file against a schema. I have an ErrorHandler handling the error messages and logging the errors. What I am wondering is, after the validation is done and the errors are printed, how do I know whether the document is valid? Here is my code:
Let me start by rejecting the question. You have chosen the route of checking the document to see if it's valid without examining the possibility of simpler tests -- like setting a boolean variable in your ErrorHandler for example.
posted 9 years ago
You are right. I set a boolean variable in my ErrorHandler. Thank you for your help.
I am going to test your electrical conductivity with this tiny ad:
ScroogeXHTML 8.7 - RTF to HTML5 and XHTML converter