Page last modified 12:05, 19 Aug 2014 by Antero

AttributeNSNotUnique

    Please note! 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: Attribute \"{1}\" bound to namespace \"{2}\" was already specified for element \"{0}\".

    Error description in schema standard: http://www.w3.org/TR/2004/REC-xml-20...4/#uniqattspec

    Possible causes for this error:

    • Attribute namespace is declared twice within one element

    Example

     <Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03"

    xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03"> 

     

     

    Error message: Attribute "xmlns" bound to namespace "http://www.w3.org/2000/xmlns/" was already specified for element "Document".

    How to fix: Remove duplicate namespace delcaration

    <Document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03" xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03">   

    Menu