in reply to Removing duplicate subtrees from XML

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

  • Comment on Re: Removing duplicate subtrees from XML