If I understand correctly, you want to rewrite the xml file to consolodate like roots in a common root subtree. I made a stab at it, but your sample data is too ill-formed to test.
Please post some correct data. Schematic or sketchy data is ok, but at least validate it.
After Compline,
Zaxo
In reply to Re: Removing duplicate subtrees from XML
by Zaxo
in thread Removing duplicate subtrees from XML
by matth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |