Page last modified 12:46, 21 Aug 2009 by juhako


    Table of contents
    No headers

    Version as of 12:58, 18 Sep 2020

    to this version.

    Return to Version archive.

    View current version

    Error description:

    The XML document has content outside of tags and it is defined by the schema that only elements are allowed.

    For example:

        Hello Mr. <to>Andersson</to>
        How is your <system>Matrix</system> doing?
        Sincerely Yours, <from>Agent Smith</from>

    would produce this error. (It is possible to use XML this way and even validate it by XML schemas by setting complextype attribute mixed="true" but bank materials do not support this.)

    You can add extra content to files by using comments. For example:

    <!-- Here is an email -->
        <to>user'at'</to> <!-- email address here -->
        <subject>Hello</subject> <!-- remember to use describing subject -->

    Explanation of the error message given by the validator:

    Element '{urn:iso:std:iso:20022:tech:xsd:pain.001.001.02}elem1': Character content other than whitespace is not allowed because the content type is 'element-only'.

    Elem1 is the element which has content outside of tags and produces the error.