I would like to able to create a list of nodes that is also of
type Node. Currantly I have to create a List of Nodes and
call setContent to the element/branch that I want to add
those nodes. However it would be nice to have a
mechanism where you don't care if it is a list of nodes or an
element or a node you just want to add it to some other
A simple implementation would be possible if phantom
nodes can be created who do not output anything.
P.S. IMHO setParent() should take a parameter of type
Branch and not Element.
Log in to post a comment.