Permalink Reply by taz on November 18, 2009 at 12:47pm
Sameer,
Whether two trees are merged or appended all depends on path names. To do what you want you would still use the merge component (or feed both trees to the same input), but you would need to keep track of the path names yourself.
You can use the Replace Branches component to rename.
It may work if there is only one item in each path. As soon as there are multiple and different number of items in every path, the above method will not apply. Taz's method is the way to go.
Carlo,
Very interesting and useful. This is the first use of the "Explode Tree" component and the "Flatten Path" variable that I have seen!
However, I have upto 125 paths that I am splitting and then re-combining for various purposes. With the "Replace Branches", I can create and replace several paths using series/ranges... That may be more efficient.
It may be a tool worth putting on the wishlist for David... I can see that there may be other situations when such a tool may become useful.