Replaces an existing child with a new child node. If oldChild
is not a child of this node, then a NoSuchChildException
is thrown. The root element can only be replaced by another element.
newChild
alreadyhas a parent
@throws NoSuchChildException if oldChild
is not a child of this node
@throws NullPointerException if either argument is null
@throws IllegalAddException if newChild
is anattribute or a text node
@throws WellformednessException if newChild
oldChild
is an element and newChild
is not
|
|
|
|
|
|
|
|
|
|
|
|