example comparing: test41 forbidden elements

basic-control-file: cmp41.xml
<?xml version="1.0" encoding="UTF-8"?>
<delivery>
	<list_person>
		<person              ident_att_id="true">
			<name        cmp_text="true" />
			<firstname   cmp_text="true" />
			<birthdate   cmp_text="true" />
			<size        cmp_text="false" />
		</person>
	</list_person>
</delivery>
explanation

The comparison is executed with shell-variable "isOtherForbidden=true".
This means, that all elements and attributes, which are not listed in the basic-control-file, are forbidden. Because element <weight> in file test41a.xml is not listed in the basic-control-file, there will be a error-message. The element <size> differs, but this element should not be compared.

Comparison-result in XML-Format or in HTML-Format

file: test41a.xml
<?xml version="1.0" encoding="ISO-8859-2"?>
<delivery>
	<list_person>
		<person id='588520'>
			<name>Fischer</name>
			<firstname>Hans</firstname>
			<birthdate>1999-10-04</birthdate>
			<size>100</size>
			<weight>189</weight>
		</person>
		<person id='588521'>
			<name>Becker</name>
			<firstname>Claudia</firstname>
			<birthdate>1990-01-18</birthdate>
		</person>
	</list_person>
</delivery>
file: test41b.xml
<?xml version="1.0" encoding="ISO-8859-2"?>
<delivery>
	<list_person>
		<person id='588520'>
			<name>Fischer</name>
			<firstname>Hans</firstname>
			<birthdate>1999-10-04</birthdate>
		</person>
		<person id='588521'>
			<name>Becker</name>
			<firstname>Claudia</firstname>
			<birthdate>1990-01-18</birthdate>
		</person>
	</list_person>
</delivery>