For PHP 7 and Ubuntu 14.04 the procedure is follows. Since PHP 7 is not in the official Ubuntu PPAs you likely installed it through Ondřej Surý’s PPA (sudo add-apt-repository ppa:ondrej/php). Go to /etc/php/7.0/ edit php.ini, uncomment to following line:

[sourcecode language=”plain”]
extension=php_xmlrpc.dll
[/sourcecode]

Then simply install php7.0-xml:
[sourcecode language=”plain”]
sudo apt-get install php7.0-xml
[/sourcecode]

And restart Apache:
[sourcecode language=”plain”]
sudo /etc/init.d/apache restart
[/sourcecode]