title: BizTalk xml file to a flatfile format
body: <p>Relatively new to BizTalk; I could use seasoned help.</p>
  
  <p>I'm faced with having to try to map a source XML document to a flat-file TAB delimited destination.  My source document has some nested nodes that I need to iterate through and translate them each as a row on the flat-file document; classic sales order header/detail relationship. The results would need me to repeat the header information for every nested element in the child node.  </p>
  
  <p>I've tried a solution using a looping functoid but I'm not sure how to represent the destination list correctly. Am I missing the obvious? At what destination row element should I link my "Looping" output param to?</p>
  
  <p>For demonstration sake here's an example of the schemas I'm working with.</p>
  
  <p>SOURCE SCHEMA  (Don't have the possibility to modify the source structure)</p>
  
  <ul>
  <li>schema\</li>
  <li>salesorders\</li>
  <li>salesorders\orders\</li>
  <li>orders\soid</li>
  <li>orders\cust name</li>
  <li>orders\address</li>
  <li>orders\detail\</li>
  <li>orders\detail\msrp</li>
  <li>orders\detail\modelno</li>
  <li>orders\detail\sku</li>
  </ul>
  
  <p>DESTINATION SCHEMA</p>
  
  <ul>
  <li>schema\</li>
  <li>\root\</li>
  <li>soid</li>
  <li>custname</li>
  <li>address</li>
  <li>etc...</li>
  </ul>
  
  <p>Flat file OUTPUT (One line per detail item)</p>
  
  <ul>
  <li>soid  custname  address  msrp  modelno  sku</li>
  <li>soid  custname  address  msrp  modelno  sku</li>
  </ul>
  
  <p>Anybody could orient me in right direction?</p>