Skip to Content
avatar image
Former Member

Multiple messages in one XSD

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 12, 2010 at 07:19 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12, 2010 at 07:22 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12, 2010 at 07:24 AM

    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,

    Add comment
    10|10000 characters needed characters exceeded