Essentially yes, the DocumentFragment would just be a collection of Elements. But would it not be nice if it also extended Node or Branch, so that you could use it anywhere you can use a Node. I would like to be able to pass a DocumentFragment object to the write() method of XMLWriter, for example.
Also, in my application I need to manipulate Document and DocumentFragment objects through a common interface, which could be Branch, for example. Luca > Hi Luca > > I'm just wondering if a 'set of elements' could be implemented as just a > List of Element objects? i.e. just using regular Java 2 Collections. Is > there something else that a DocumentFragment could offer other than being a > collection of Elements? > > James -- DISCLAIMER: This e-mail contains proprietary information some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail. _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
