Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Forcing the sequence of Output Tags › Re: Forcing the sequence of Output Tags
Hi Mike,
Your target schema should be something like this:
<?xml version=”1.0″ encoding=”utf-16″ ?>
<xs:schema xmlns:b=”http://schemas.microsoft.com/BizTalk/2003” xmlns=”http://Test_Project.Schema2” targetNamespace=”http://Test_Project.Schema2” xmlns:xs=”http://www.w3.org/2001/XMLSchema“>
<xs:element name=”OrderInfo”>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs=”1″ maxOccurs=”unbounded” name=”SeqNode”>
<xs:complexType>
<xs:sequence>
<xs:element name=”ProductInfo”>
<xs:complexType>
<xs:sequence>
<xs:element name=”LineNumber” type=”xs:string” />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name=”CommentLine”>
<xs:complexType>
<xs:sequence>
<xs:element name=”CommentText” type=”xs:string” />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Then, in your map, link the element fields in your source schema to the element fields in the destination schema, put a Looping functoid in the map, and connect the left-hand side to the Lines node in your source schema, and connect the right-hand side to the SeqNode node in the destination schema, and you should be all set…
Daniel.