Mapping Schemas in Proper Order

Home Page Forums BizTalk 2004 – BizTalk 2010 Mapping Schemas in Proper Order

Viewing 1 reply thread
  • Author
    Posts
    • #12934

      I am trying to map from one XML schema to another. My issue is this, I have a schema something like this:
      <Sequence>
      <OBR>
      <obr1></obr1>
      <obr2></obr2>
      </OBR>
      <ORC>
      <orc1></orc1>
      <orc2></orc2>
      </ORC>

      When I get my resulting XML I get all the OBR’s at the top and then all the ORCs at the bottom. For example:
      OBR
      OBR
      OBC
      ORC
      ORC

      How can I make it so that the order of the OBR and ORCs in the original file stay in the resulting file? Like:
      OBR
      ORC
      OBC
      OBR
      ORC

      Any ideas would be appreciated, thanks!

    • #12935

      would help if I could put the question in right, I meant:

      When I get my resulting XML I get all the OBR’s at the top and then all the ORCs at the bottom. For example:
      OBR
      OBR
      ORC
      ORC
      ORC

      How can I make it so that the order of the OBR and ORCs in the original file stay in the resulting file? Like:
      OBR
      ORC
      ORC
      OBR
      ORC

      • #12936

        We are trying the custom xslt way.

        But, what do you mean by ‘looping around the node’?

        thanks!

        • #12937

          Just Think If you can have schema like this:

          <Sequence>
          <OBR-ORC>
          <obr1></obr1>
          <orc1></orc1>
          <obr2></obr2>
          <orc2></orc2>
          </OBR-ORC>

          regards,

          • #12938

            I think your mapping is set up wrong.

            You might need to look at looping around the node above the <OBR> and <ORC> node. Map that to your destination node.

            If you don’t have that option, you might have to look at custom xslt.

            Hope this helps.

            • #12939

              I think you’ll need to go one node higher on your source message and drag it into a Looping functoid. Just an idea

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.