It seems that C is the correct answer.
https://docs.oracle.com/javase/8/docs/api/javax/xml/bind/helpers/AbstractMarshallerImpl.html#setEventHandler-javax.xml.bind.ValidationEventHandler-
There is no correct answer! Correct is setValidating(true)
or setSchema(javax.xml.validation.Schema) because method setValidating(true) is deprecated.
https://docs.oracle.com/javaee/7/api/javax/xml/bind/Unmarshaller.html#:~:text=By%20default%2C%20the%20Unmarshaller%20does,one%20of%20the%20unmarshal%20methods.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Galen86
1 month, 3 weeks agoorjava
6 months, 1 week agopeteVln
6 months, 3 weeks agokozionov
2 years, 7 months agociellaf5
2 years, 9 months ago