cancel
Showing results for 
Search instead for 
Did you mean: 

XSD Import into message mapping changes the sequence of the XML attributes

Former Member
0 Kudos

Hi Experts,

I imported an XSD in to XI. But when I used it in the message mapping (target), the sequence of the XML attributes is changed. I looked at the text for the XSD in the import and it looks OK.

The message mapping somehow reorders them. The XSD has the <xsd:sequence> around the tags.

Am I missing something? Please help.

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

GabrielSagaya
Active Contributor
0 Kudos

Did you add xsd:complexType outside the xsd:sequence ??

The Root Element must be defined as a Complex Type because there are one or more elements under the root element.

eg:

<xsd:complexType>

<xsd:sequence>

<xsd:element name="SSN="xsd:string>

<xsd:element name="Name" type="xsd:string"/>

<xsd:element name="DateOfBirth" type="xsd:date"/>

<xsd:element name="EmployeeType" type="xsd:string"/>

<xsd:element name="Salary" type="xsd:int"/>

</xsd:sequence>

</xsd:complexType>

http://www.15seconds.com/issue/031209.htm

Former Member
0 Kudos

Hi Gabriel,

Thank you for the quick response. I do have the <xs:complextype>. I see the problems in the sequence of the attributes of the element.

Apparently I can not define <xs:sequence> for the attributes!

Any suggestions?

Thank you.