change DOMFile to DOMFileImpl