dbTalk Databases Forums  

XML source - how to merge nodes?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss XML source - how to merge nodes? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
artzoop@hotmail.com
 
Posts: n/a

Default XML source - how to merge nodes? - 09-12-2006 , 01:01 PM






Hi,
I have a SSIS data flow task that uses an XML file that contains nested
nodes. How do I merge the data in all nodes to one output?, e.g.:
- <Switches>
- <HeaderFields>
<Date>20060808</Date>
<AccountNumber />123</AccountNumber>
<FromFund>A01</FromFund>
<Quantity>ALL</Quantity>
</HeaderFields>
- <LineItems>
- <LineItemRow>
<ToFund>A11</ToFund>
<QtyPercent>11</QtyPercent>
</LineItemRow>
- <LineItemRow>
<ToFund>A09</ToFund>
<QtyPercent>12</QtyPercent>
</LineItemRow>
- <LineItemRow>
<ToFund>A11</ToFund>
<QtyPercent>13</QtyPercent>
</LineItemRow>
</LineItems>
</Switches>

The XML Source Editor creates 3 outputs: HeaderFields, LineItemRow, and
LineItems. I can create separate outputs for each node, but cannot
figure out how to merge them into one output.

Is there a simple way of doing this? Would I tweak the generated XSD
to force all elements into one node or something?

Thank you,
Greg


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.