1828

Error description: Element has child elements even thought schema defines it to be a simple element. In other words element can only contain value - not other elements.

 

Notice! This page describes the nature of the error using a hypothetical example and not the erroneous data of the input test file. You should however be able to apply this information to your error case.

 

Error description:

Element has child elements even thought schema defines it to be a simple element. In other words element can only contain value - not other elements.

Example:

1828.png

In this case <PmtInfId> element is defined in the schema as simple type element which should only contain string value and not other elements. The error can be corrected by removing any child elements and giving valid value e.g.

<PmtInfId>IDValue/88638</PmtInfId>

Explanation of the error message given by the validator:

"Element 'elem1': Element content is not allowed, because the type definition is simple."

Where elem1 can not contain other elements but only values.