A new topic, 'Liquibase validation: can we turn it off?', has been made on a 
board you are watching.

You can see it at
http://liquibase.org/forum/index.php?topic=703.new#new

The text of the topic is shown below:

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 <insert> 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:

Code:
    <insert schemaName="${database.defaultSchemaName}" tableName="Country">
      <column name="id" valueNumeric="50"/>
      <column name="code" value="50"/>
      <column name="description" value="Cook Islands"/>
    </insert>
    <insert schemaName="${database.defaultSchemaName}" tableName="Country">
      <column name="id" valueNumeric="51"/>
      <column name="code" value="51"/>
      <column name="description" value="Colombia"/>
    </insert>


Line 5, column 14 of the snippet above is where the parser says it's invalid:

Code:
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 <insert> 
elements?

I'm happy to post the huge changelog.xml if that would help.

Best,
Laird

Unsubscribe to new topics from this board by clicking here: 
http://liquibase.org/forum/index.php?action=notifyboard;board=1.0

Regards,
The Liquibase Community Forum Team.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Liquibase-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/liquibase-user

Reply via email to