How to copy xml document skipping some top level nodes. For example:
Input:
<root>
<subroot>
<nodeX id="1">
<!-- inner structure -->
</nodeX>
<nodeX id="2">
<!-- inner structure -->
</nodeX>
<!-- other nodes -->
</subroot>
<root>
Output:
<nodeX id="1">
<!-- inner structure -->
</nodeX>
<nodeX id="2">
<!-- inner structure -->
</nodeX>
should. If you want or need something more generic then make the second template