moved setElement for DOCUMENT_ROOT example