Documentbuilderfactory validating 35p chat line
However, chances are good that you're not parsing simple literal strings, so read on …
Should we still use the code at the top of this issue?
If you could spare a moment to look at my change @trejkaz I'd be grateful.
So, for those of us non-experts, how exactly in 2.6 do you compare two XML docs without validating?
Your code looks as if you'd still be using XMLUnit 1.x. I tried bumping to xmlunit-matchers 2.3.0, since I generally do prefer matchers, but it seems like the API is a little bit too different to just switch over, so initially I am moving it to xmlunit-legacy 2.3.0. Maybe there is a way to have the best of both worlds.
Still enable all validation, but set the factories up such that all schemas and DTDs are actually loaded locally, for instance, and if the callback doesn't return a DTD, it either fails fast or skips validation.