minor error handling to xmlValidator