此扩展默认为启用,编译时可通过下列选项禁用: --disable-dom
For Ubuntu:sudo apt-get install php7.0-xmlFor Fedora:yum -y install php-xml