Table of contents
|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.|
Invalid attribute on an element or a required namespace prefix missing on an attribute. Attribute name could also be mistyped.
In this example an attribute called "ccy" is given for InstdAmt element. The error says the attribute is invalid. Further information on which attributes are allowed for the InstdAmt element can be found from schema, which in this case shows the following:
<xs:element name="InstdAmt" type="ActiveOrHistoricCurrencyAndAmount"/>
<xs:attribute name="Ccy" type="ActiveOrHistoricCurrencyCode" use="required"/>
So in this case the element is allowed and should have an attribute which should be called "Ccy". The error can be fixed by changing the original attribute "ccy" to "Ccy". As you can see the validation is case sensitivte.
Explanation of the error message given by the validator:
Element 'elem1', attribute 'att1'. The attribute 'att1' is not allowed.
The attribute att1 given for element elem1 should not be there.