Removes the child of this document at the specified position. Indexes begin at 0 and count up to one less than the number of children of this document. The root element cannot be removed. Instead, use setRootElement
to replace the existing root element with a different element.
@param position index of the node to remove
@return the node which was removed
@throws IndexOutOfBoundsException if the index is negative or greater than the number of children of this document - 1
@throws WellformednessException if the index points to the root element