I have found xom-lite, which is an Apache2 licensed Java library which seems to replicate the basic XML handling tasks of XOM without the validation overhead. This seems to solve the issue!
If you know a way to solve the issue in XOM itself, then still answer and I'll accept.