cvc-type.3.1.1

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.1: Element ''{0}'' is a simple type, so it cannot have attributes, excepting those whose namespace name is identical to ''http://www.w3.org/2001/XMLSchemainstance''
and whose [local name] is one of ''type'', ''nil'', ''schemaLocation'' or ''noNamespaceSchemaLocation''. However, the attribute, ''{1}'' was found.

Error description in schema standard: http://www.w3.org/TR/2007/WD-xmlsche...#cvc-attribute

Possible causes for this error:

  • Attribute was given for element where it is not allowed.

An example

<ReqdExctnDt date="iso">1967-08-13</ReqdExctnDt>

Error message: Error cvc-type.3.1.1: Element 'ReqdExctnDt' is a simple type, so it cannot have attributes, excepting those whose namespace name is identical to 'http://www.w3.org/2001/XMLSchema-instance' and whose [local name] is one of 'type', 'nil', 'schemaLocation' or 'noNamespaceSchemaLocation'. However, the attribute, 'date' was found.

How to fix: The reason for this error can be found out by examining the definition of ReqdExctnDt element from the schema definition and fixing the element to be valid against the definition. In this example, as the error message states, the ReqdExctnDt must not contain any attributes:

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