content

Returns the content nodes of this branch as a backed Listso that
the content of this branch may be modified directly using the
Listinterface. The List is backed by the
Branch so that changes to the list are reflected in the
branch and vice versa.

addElement

add

Adds the given Node or throws IllegalAddException
if the given node is not of a valid type. This is a polymorphic method
which will call the typesafe method for the node type such as
add(Element) or add(Comment).

remove

Removes the given Node if the node is an immediate child
of this branch. If the given node is not an immediate child of this
branch then the Node.detach()method should be used instead. This
is a polymorphic method which will call the typesafe method for the node
type such as remove(Element) or remove(Comment).

remove

Removes the given ProcessingInstruction if the node is an
immediate child of this branch. If the given node is not an immediate
child of this branch then the Node.detach()method should be used
instead.

elementByID

Returns the element of the given ID attribute value. If this tree is
capable of understanding which attribute value should be used for the ID
then it should be used, otherwise this method should return null.