Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have an XML file in the following format:
<Items>
<Item>
<Detail1>A</Detail1>
<Detail3>B</Detail3>
<Detail4>B</Detail4>
...
</Item>
<Item>
<Detail2>B</Detail2>
<Detail4>B</Detail4>
...
</Item>
...
</Items>
I want to read all the details in as normalised records so I set the Loop XPath to "/Items/Item//*" with columns "fn:name()" and ".". So far so good, I get records as follows:
Detail1,A
Detail3,B
etc.
But the problem is there is no unique identifier amongst the various details for each <Item>so how can I create one to link the various detail records, even if it's a simple counter of which <Item>the record is created from? I thought something with fn:position() but I can't make it work.
Thanks