Also a more generic way would be to keep the first document, and then to add the other ones at the end, removing their root: ...
I'm not sure how much more "generic" your second solution would be... It might not apply very well, I think, in cases where the quantity of xml data to be concatenated, multiplied by the additional memory consumed for DOM data structure storage in perl, could exceed available RAM.
In reply to Re^2: Conatenating XML files
by graff
in thread Concatenating XML files
by moritz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |