I have a XML like below
<MYLIST>
<Frame Id="89900981" Name="Gxown" Qty="0.0">
<Frame Id="354653-01" Name="Frametop" Qty="1.0" />
<Frame Id="656997-23" Name="FrameNM" Qty="1.0" />
<Frame Id="776879921" Name="PINOBK" Qty="2.0" />
</Frame>
</MYLIST>
Now I want to load the data into table like below
+----------+-----------+----------+-----+
| HEAD | SUBS | NAME | QTY |
+----------+-----------+----------+-----+
| 89900981 | 354653-01 | Frametop | 1.0 |
+----------+-----------+----------+-----+
| 89900981 | 656997-23 | FrameNM | 1.0 |
+----------+-----------+----------+-----+
| 89900981 | 776879921 | PINOBK | 2.0 |
+----------+-----------+----------+-----+
Basically under the MYLIST node, the first node Frame is the Head of all. So I want to put that as in HEAD column (same for all rows under it) and other in SUBS column. Is this possible? I have tried using the output MYLIST_Frame_Frame. With this i'm able to load the SUBS,NAME and QTY column but the HEAD is available in MYLIST_Frame. I'm not sure how to combine this. I have tried using MERGE but that is inserting HEAD as a separate row.