XML validation

MSG_ID

Error Message

Cause

Solution

XML_1

Failed to validate the configuration file: cvc-elt.1: Cannot find the declaration of element 'test'.

Root element is not mapping.

Add a root element mapping.

XML_2

Failed to validate the configuration file: cvc-complex-type.2.4.b: The content of element 'mapping' is not complete. One of '{module}' is expected. cvc-complex-type.2.4.b: The content of element 'mapping' is not complete. One of '{module}' is expected.

No module element in the mapping element.

Add a module element in the mapping root element.

XML_3

Failed to validate the configuration file: cvc-complex-type.2.4.d: Invalid content was found starting with element '{module}'. No child element is expected at this point.

More than two module elements in the mapping file.

Make sure the mapping element has only one or two module elements.

XML_4

Failed to validate the configuration file: cvc-enumeration-valid: Value 'others' is not facet-valid with respect to enumeration '[change, problem]'. It must be a value from the enumeration.
cvc-attribute.3: The value 'others' of attribute 'name' on element 'module' is not valid with respect to its type, 'ModuleName'.

Name of a module is not problem or change.

The name attribute of a module element should be change or problem.

XML_5

Failed to validate the configuration file: cvc-complex-type.2.4.b: The content of element 'module' is not complete. One of '{field}' is expected.

No field element in the module element.

Define field elements in each module element.

XML_6

Failed to validate the configuration file: cvc-enumeration-valid: Value 'Unknown' is not facet-valid with respect to enumeration '[String, Number, Date, Attachment, Single_Value_List, Multi_Value_List]'. It must be a value from the enumeration. cvc-attribute.3: The value 'Unknown' of attribute 'type' on element 'field' is not valid with respect to its type, 'FieldType'.

The field element has a wrong type attribute.

The type attribute of a field element must be enumeration '[String, Number, Date, Attachment, Single_Value_List, Multi_Value_List]'

XML_7

Failed to validate the configuration file: cvc-datatype-valid.1.2.1: 'wrong' is not a valid value for 'boolean'. cvc-attribute.3: The value 'wrong' of attribute 'readonly' on element 'field' is not valid with respect to its type, 'boolean'.

The field element has a wrong readonly attribute.

The readonly attribute of a field element should be true or false.

XML_8

Failed to validate the configuration file: cvc-enumeration-valid: Value 'wrong' is not facet-valid with respect to enumeration '[mandatory, optional, recommended]'. It must be a value from the enumeration. cvc-attribute.3: The value 'wrong' of attribute 'required' on element 'field' is not valid with respect to its type, 'FieldRequired'.

The field element has a wrong required attribute.

The required attribute of a field element should be mandatory, optional or recommended.

XML_9

Failed to validate the configuration file: cvc-complex-type.4: Attribute 'type' must appear on element 'field'.

The field element has no type attribute.

The type attribute must be defined in each field element.

XML_10

Failed to validate the configuration file: cvc-complex-type.4: Attribute 'name' must appear on element 'field'.

The field element has no name attribute.

Define a name attribute in the field element.

XML_11

Failed to validate the configuration file: cvc-complex-type.2.4.d: Invalid content was found starting with element 'items'. No child element is expected at this point.

The field element has more than one child element items.

Define only one items element in each field element.

XML_12

Failed to validate the configuration file: cvc-complex-type.2.4.b: The content of element 'items' is not complete. One of '{item}' is expected.

The items element has no child element item.

Add item elements in each items element.

XML_13

Failed to validate the configuration file: cvc-complex-type.4: Attribute 'value' must appear on element 'item'.

The item element has no value attribute.

Define a value attribute for each item element.

XML_14

Failed to validate the configuration file: cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'Item'. cvc-complex-type.2.2: Element 'item' must have no element [children], and the value must be valid.

The item element has no text value.

Define a text value for each item element.

XML_15

cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'NonEmptyString'. cvc-attribute.3: The value '' of attribute 'value' on element 'item' is not valid with respect to its type, 'NonEmptyString'.

The value attribute has an empty value.

Define a value for the value attribute in each item element.

XML_16

cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'NonEmptyString'. cvc-attribute.3: The value '' of attribute 'name' on element 'field' is not valid with respect to its type, 'NonEmptyString'.

The name attribute has an empty value.

Define a value for the name attribute of each item element.

XML_17

cvc-enumeration-valid: Value 'Attachment' is not facet-valid with respect to enumeration '[String, Number, Date, Single_Value_List, Multi_Value_List]'. It must be a value from the enumeration. cvc-attribute.3: The value 'Attachment' of attribute 'type' on element 'field' is not valid with respect to its type, 'FieldType'.

The field element has a type of Attachment.

Remove the Attachment type element.

XML_18

Fail to validate the configuration file: cvc-datatype-valid.1.2.1: 'xxx' is not a valid value for 'integer'. cvc-attribute.3: The value 'xxx' of attribute 'length' on element 'field' is not valid with respect to its type, 'positiveInteger'.

The field element has an incorrect length attribute value.

Correct the value of the field element.