Remove all HEREDOC and use only DOMDocument methods