How do I take a parent node and make it a child of it's own child node while at the same time making it the parent of it's grand children?
For example, I have this XML:
<root>
<range>
<a>
<b>
<c>
</range>
<range>
<a>
<b>
<c>
<range>
<bleep>
<range>
<a>
<b>
<c>
</range>
<range>
<a>
<b>
<c>
</range>
</bleep>
</root>
I want it to look like this:
<root>
<range>
<a>
<b>
<c>
</range>
<range>
<a>
<b>
<c>
<range>
<range>
<bleep>
<a>
<b>
<c>
</bleep>
</range>
<range>
<bleep>
<a>
<b>
<c>
</bleep>
</range>
</root>