Page last modified 16:49, 15 Oct 2013 by kari_admin


    Table of contents
    No headers

    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 value differs from those enumerated in the xml schema the xml instance was being validated against.



    In this example the <ChrgBr> element must contain one of the predefined values listed at the end of the error message. The ChrgBr element is defined in the schema like this:

    <xs:simpleType name="ChargeBearerType1Code">
      <xs:restriction base="xs:string">
        <xs:enumeration value="DEBT"/>
        <xs:enumeration value="CRED"/>
        <xs:enumeration value="SHAR"/>
        <xs:enumeration value="SLEV"/>


    So in case the field does not contain either "DEBT", "CRED", "SHAR" or "SLEV" (without quotation marks), the xml instance will not pass the validation. Note that the characters are case sensitive.

    Explanation of the error message given by the validator:

    "Element 'elem1': [facet 'enumeration'] The value 'invalid' is not an element of the set {'VALID', 'VALID2', 'VALID3'}."

    Where elem1 is the element which has invalid value. In this case valid values are given by the set {'VALID', 'VALID2', 'VALID3'}.  Only these values can be used.