Hi. Looks like the SAX parser in Liquibase can’t have validation turned off.
I understand why that might be, but.
My real problem is that I have an enormous changelog file that I’ve grafted together from lots of other component changelog files.
Validation fails in a particular spot, claiming that there are CHARACTER elements inside an statement, which is patently false. I’ve looked at it with a hex editor. There aren’t. The place it fails is in a statement like this (which has hundreds of identical statements in front of it:
Line 5, column 14 of the snippet above is where the parser says it’s invalid:
Error parsing line 2073 column 14 of foo-changelog.xml: cvc-complex-type.2.3: Element 'insert' cannot have character [children], because the type's content type is element-only.
It’s a newline character in UTF8, like hundreds of newline characters before it. In reality, line 5 above is actually line 2073 in my real changelog file.
Nathan, could you allow for validation to be switched off, or perhaps adjust the 2.0 schema to be a little more permissive of character elements in elements?
I’m happy to post the huge changelog.xml if that would help.