How to add and remove elements from xml document?
List returned by the
getChildren() method call is a
java.util.List. Any modification to the
List object are immediately reflected in the backing document. This make the manipulation of the XML document easy.
You can also see how we can add a new
Element to the document by calling the