if (Document.this._root != null && (newItem instanceof Element) 
            && (!replace || !(other instanceof Element)))
                throw new DOMException(DOMException.HIERARCHY_REQUEST_ERR,
                    "Only one root element is allowed, when adding "+newItem, getLocator());