Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 03, 2008 at 01:54 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.