Read xml even if it has schema errors. XmlSerializationContext.setIgnoreMissingMandatoryElements(true) not working
Question asked by Maykell Frometa - May 29 at 8:58 PM
Unanswered
Hi, i'm using Liquid library for Java and my problem is that i need to read an xml that have a missing element that is required by schema, in this situation i need to be able to read the xml as it would be ok.
I see that liquid have XmlSerializationContext and you can do XmlSerializationContext.setIgnoreMissingMandatoryElements(true) , what i spec to happen is that liquid library ignores any error derived from a required element missing but unfortunately it is throwing an exception instead.
 
What is the right way to read an xml that has schema errors using liquid library?

Reply to Thread