We are facing a major issue with importing an xsd with the same parent node name and child node name.
But these node are different.
We can’t change the XSD as we are not the owner.
The error we are getting is as follows:
An element named present in the XML data input does not exist in the XML format used to set up this XML source…
The XSD had Amount as parent and child. When we inport the XSD the parent node’s name is changed and the structure beneith the node is lost. We have tried changing the name of the child node, importing the XSD, then changing the child’s name back again in DI, but we still get the same error message.
Any help would be most gratefully received.
Here is the XSD nodes definition concerned :
<xs:element name="Amount">
<xs:complexType>
<xs:sequence minOccurs="0">
<xs:element name="AmountType" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="Amount" minOccurs="0">
<xs:complexType>
<xs:attributeGroup ref="CurrencyAmountGroup"/>
</xs:complexType>
</xs:element>
<xs:element name="ConversionDate" type="xs:dateTime" minOccurs="0"/>
<xs:element name="ConversionRule" type="xs:string" minOccurs="0"/>
<xs:element name="OriginalCurrency" type="xs:string" minOccurs="0"/>
<xs:element name="ROE" type="xs:double" minOccurs="0"/>
<xs:element name="Difference" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence minOccurs="0">
<xs:element name="Amount" minOccurs="0">
<xs:complexType>
<xs:attributeGroup ref="CurrencyAmountGroup"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="DifferenceStatus" type="xs:string"/>
<xs:attribute name="DifferenceType" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
ridoul (BOB member since 2015-03-07)