cvc-type.3.1.2

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.

General description of the error:

The format of the error message: cvc-type.3.1.2: Element ''{0}'' is a simple type, so it must have no element information item [children].

Error description in schema standard: http://www.w3.org/TR/2007/WD-xmlschema11-1-20070830/#cvc-type

A simple element is an XML element that contains only text. It cannot contain any other elements or attributes.

Possible causes for this error:

  • A child element is given for simple type element which can contain only text.

An example

<ReqdExctnDt><Date>1967-08-13</Date></ReqdExctnDt>

Error message: Error cvc-type.3.1.2: Element 'ReqdExctnDt' is a simple type, so it must have no element information item [children].

How to fix: The reason for this error can be found out by examining the definition of ReqdExctnDt from the schema definition and fixing the value to be valid against the definition. In this example child element must be removed under the 'ReqdExctnDt':

<ReqdExctnDt>1967-08-13</ReqdExctnDt>