Page last modified 14:25, 28 Mar 2014 by jukkam

cvc-elt-4-3

    Table of contents
    No headers

    Version as of 08:25, 27 Jun 2022

    to this version.

    Return to Version archive.

    View current version

    General description of the error:

    The format of the error message: cvc-elt.4.3: Type ''{1}'' is not validly derived from the type definition, ''{2}'', of element ''{0}''.

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

     

    Possible causes for this error:

    • File has an element with a type that is not defined to be extended (derived) from the base datatype.

     

    Schema would be along with:

     

    <xsd:element name="directory">
      <xsd:complexType>
         <xsd:sequence>
            <xsd:element name="contact" type="contactType" minOccurs="0" maxOccurs="unbounded"/>
         </xsd:sequence>
       </xsd:complexType>
    </xsd:element>
    <!-- Defining the base datatype -->
    <xsd:complexType name="contactType">
      <xsd:sequence>
         <xsd:element name="name" type="xsd:string"/>
      </xsd:sequence>
    </xsd:complexType>
    <!-- Defining a derived datatype -->
    <xsd:complexType name="phoneContactType">
      <xsd:complexContent>
         <xsd:extension base="contactType">
            <xsd:sequence>
               <xsd:element name="phone" type="xsd:string"/>
            </xsd:sequence>
         </xsd:extension>
      </xsd:complexContent>
    </xsd:complexType>
     

     

    An example

    <NWKRadioManagement>content</NWKRadioManagement>

     

     

    Error message: Error cvc-complex-type.2.1: Element 'NWKRadioManagement' must have no character or element information item [children], because the type's content type is empty.

    How to fix: The error can be corrected by removing the content of the element.

    <NWKRadioManagement></NWKRadioManagement> 
    Tag page (Edit tags)
    Menu