CreateDOMDocument: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/CreateDOMDocument - from package: libxerces-c-samples

You may install the required package with command apt-get install {package}
Error in other languages:
CreateDOMDocument: bevel nie gevind nie
CreateDOMDocument: comandă negăsită
CreateDOMDocument: comando não encontrado
CreateDOMDocument: commande introuvable
CreateDOMDocument: command not found
CreateDOMDocument: käsku ei ole
CreateDOMDocument: không tìm thấy lệnh
CreateDOMDocument: komanda nerasta
CreateDOMDocument: Kommando nicht gefunden.
CreateDOMDocument: kommandot finns inte
CreateDOMDocument: komut yok
CreateDOMDocument: nie znaleziono polecenia
CreateDOMDocument: níor aimsíodh an t-ordú
CreateDOMDocument: no se encontró la orden
CreateDOMDocument: no s'ha trobat l'ordre
CreateDOMDocument: opdracht niet gevonden
CreateDOMDocument: parancs nem található
CreateDOMDocument: perintah tidak ditemukan
CreateDOMDocument: príkaz nenájdený
CreateDOMDocument: příkaz nenalezen
CreateDOMDocument: команда не найдена
CreateDOMDocument: командата не е открита
CreateDOMDocument: 命令找不到
CreateDOMDocument: コマンドが見つかりません