cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple messages in one XSD

Former Member
0 Kudos

Hi,

I have converted one XML file into XSD. But instead of only one message I am getting multiple messages on messages tab at external definitions. So whenever I am calling this external definition on mapping its asking to select any one of the message.

How do I combine these messages and make it as one to use in Mapping.

Help needed.

Regards,

Rams

Accepted Solutions (0)

Answers (3)

Answers (3)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

In xsds, it is possible to have more than one complexType. We call a complex type by this declaration:

e.g.


<xs:schema .......>
  <xs:complexType name="node1Type">
    <xs:sequence>
      <xs:element name="QUALF" type="xs:string" />
      <xs:element name="BELNR" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
 <xs:element name="root" type="node1Type" />
</xs:schema>

In this case, node1Type will only be considered as a message if you declare it as an element(outside of complexType).

In your case, there maybe multiple element names and that is why you are also getting multiple messages. Delete the ones you don't need and it will work fine.

Hope this helps,

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Ramesh,

When you convert XML in to XSD,it creates multiple messages,but all messages has links,

so select your root node in the messages,then you will get the XML structure .no need to worry,XSL behaves like that only.no need to do anything just select root elements from the messages.

Regards,

Raj

former_member200962
Active Contributor
0 Kudos

In the Main XSD refer (include) the child XSD-content...as of now the child XSD is referred in the main XSD....so now manually enter the details into the main XSD.