Resolving EngageOne Designer 6.0 - XML DFE issue

Software Affected: EngageOne Designer
Product Feature: Data Format Editor


When importing XML, it is causing errors when the data format editor is saved:
User-added image


Structure of XML\XSD as follows:

<xs:complexType name="addressType">
                        <xs:element name="addressLine" type="xs:string" maxOccurs="unbounded"/>
                        <xs:element name="postCode" type="xs:string"/>
which is made up of two elements 'addressLine' and 'postCode'.
In addition we have a further complex-type 'addressInternationalType' which uses XML inheritance extension from the base type 'addressType' - eg:
<xs:complexType name="addressInternationalType">
                        <xs:extension base="addressType">
                                                <xs:element name="country" type="xs:string"/>



UPDATED: September 26, 2017
We do NOT support xs:extension using complex types.
We do support xs:extension using attributes.

Page 309 Designer Users Guide
Using xsi:type attributes
The <xs:extension> construct allows you to take a base element structure, and add additional
information. For example, generic address information could be enhanced by the addition of
State/ZIP code values for US addresses, or County/Postcode values for UK addresses. To allow
additional attributes in your data, you will need to include the appropriate <xs:extension>
constructs in the schema to cater for the additional properties and provide xsi:type attributes
in the data, for example:
<Address xsi:type="USAddress" … \>
<Address xsi:type="UKAddress" … \>