Cvc-complex-type.3.2.2: Attribute 'labels' is not allowed to appear in element 'changeSet'

Hi guys!

I am having issues with labes. I am on latest version 4.17.2 from docker, but also tryed 4.16 just for test.

My changeset looks like this:

<changeSet author="xmlGenerator" id="View.017" labels="test" runOnChange="true" context="pre-production">
<sqlFile dbms="mssql" endDelimiter="\nGO" path="./Views/dbo.Invoices_test.View.sql" relativeToChangelogFile="true" splitStatements="true"/>
<comment>#CURRENT_USER</comment>
<rollback/>
</changeSet>

and probably is a stupid syntax fault, but after hours testing it I can’t figure out what is going on. I am checking following example from labels :

<changeSet  author="Liquibase User"    id="1"  labels="1.0"  objectQuotingStrategy="QUOTE_ALL_OBJECTS">
       <createTable  schemaName="proschema"  tableName="primary_table">
       <column  name="name"  type="CHAR(20)"/>
       </createTable>
</changeSet>

So I don’t understand why the error is:

cvc-complex-type.3.2.2: Attribute 'labels' is not allowed to appear in element 'changeSet'.

Hope you could help me, thank you very much

I will answer to myself

I simply was missing xml headers, so liquibase didn’t understand the topology:

<databaseChangeLog 
	xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
	xmlns:pro="http://www.liquibase.org/xml/ns/pro"
	xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
		http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd
		http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
		http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd">   
	<preConditions onFail="HALT" onFailMessage="This changelog needs to run under the liquibase user account">
		<runningAs username="liquibase"/>
	</preConditions>
	<include file="./v2.0/base/db.changelog_base.json" />
...