Hello, >From going through the mailing list archives, it seems that the recommended way of merging one dom4j tree into another is to detach() the root node of one and use addElement() to graft it onto the other.
However, I got this to work first using Element.appendContent() which seems to work fine - I appear to have successfully inserted an entire hierarchy of nodes. Is there a rule of thumb over when it is best to use either detach and addElement, versus appendContent? And is there going to be a helper method for adding a bit of static xml a la "<someTag><otherTag>text content</otherTag></someTag>"? Although wouldn't you just be able to use a StringSource? Thanks, Andy ______________________________________________________________________ Web-hosting solutions for home and business! http://website.yahoo.ca _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
