Page last modified 12:53, 1 Apr 2014 by jukkam

cvc-type-3-1-1

    Table of contents
    No headers

    Version as of 07:18, 27 Jun 2022

    to this version.

    Return to Version archive.

    View current version

    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 'ISODate' from the message definition and fixing 'ReqdExctnDt' to be valid against the definition. In this example the ReqdExctnDt must not contain attributes:

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