Hi can anybody help please?
An example of the xml I have is
<AAA>
<ab>
<BBB>
<CCC>Test1</CCC>
<CCC>Test2</CCC>
<CCC>Test3</CCC>
</BBB>
</ab>
<ac>
<BBB>
<CCC>Test4</CCC>
</BBB>
</ac>
</AAA>
What I want is
<XXX>
<ab/>
<CCC>Test1</CCC>
</XXX>
<XXX>
<ab/>
<CCC>Test2</CCC>
</XXX>
<XXX>
<ab/>
<CCC>Test3</CCC>
</XXX>
<XXX>
<ac/>
<CCC>Test4</CCC>
</XXX>
I have tried using for-each with ancestor::* etc but I have had no success, any help would be greatly appreciated.
Thanks,
Gazzo
An example of the xml I have is
<AAA>
<ab>
<BBB>
<CCC>Test1</CCC>
<CCC>Test2</CCC>
<CCC>Test3</CCC>
</BBB>
</ab>
<ac>
<BBB>
<CCC>Test4</CCC>
</BBB>
</ac>
</AAA>
What I want is
<XXX>
<ab/>
<CCC>Test1</CCC>
</XXX>
<XXX>
<ab/>
<CCC>Test2</CCC>
</XXX>
<XXX>
<ab/>
<CCC>Test3</CCC>
</XXX>
<XXX>
<ac/>
<CCC>Test4</CCC>
</XXX>
I have tried using for-each with ancestor::* etc but I have had no success, any help would be greatly appreciated.
Thanks,
Gazzo