BizTalk Maps

Viewing 1 reply thread
  • Author
    Posts
    • #21587

      I have a requirement to transform one Schema to another schema. My destination schema having a key-value pair node.

      <xs:element minOccurs=”0
      maxOccurs
      =”unbounded name=”PackageReference>
      <xs:complexType>
      <xs:sequence>
      <xs:element minOccurs=”2
      maxOccurs
      =”unbounded name=”ReferenceParameter
      nillable
      =”true>
      <xs:complexType>
      <xs:simpleContent>
      <xs:extension base=”xs:string>
        <xs:attribute name=”refKey type=”xs:string
      />
        </xs:extension>
        </xs:simpleContent>
        </xs:complexType>
        </xs:element>
        </xs:sequence>
      </xs:complexType>
        </xs:element>

      Once the transformation is done my out put file should contains two instance of that key-value pair nodes like given below.

       

          <PackageReference>
                   <ReferenceParameter
      refKey
      =”DataEncoding>YES</ReferenceParameter>
               <ReferenceParameter
      refKey
      =”FileType>ZIP</ReferenceParameter>
      </PackageReference>
      Advise me how can i do that using the BizTalk MAP….
    • #21608

      Can you post an example of the input document?

      • #21727

        A sample file input

        20000001048439008148500701                Microso
        3001Graham                                        
        6001000014Aug102007336PM1          Strongman      
        6001000014Aug102007336PM2                         
        6001000014Aug102007336PM3                         
        6001000014Aug102007336PM4                                     
        800000010000000011000000288.80000000000.00000000001
        20000002048439008148003045                        
        3001Mark                                          
        6001000014Aug102007336PM12         Avery          
        3001Talbot                                        
        6001000014Aug102007336PM14         Menear         
        800000010000000011000000288.80000000000.00000000001

        20-> header 80>trailer 30->record type 160-> record type2

        • #21732

          Hi

          Please put both the source and the destination xml file in a well formatted xml file

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