Install php-xml by entering the following commands in the terminal:
sudo apt update sudo apt install php-xml
Description:
DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
This package provides a DOM, SimpleXML, WDDX, XML, and XSL module for PHP. . PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. . This package is a dependency package, which depends on Ubuntu's default PHP version (currently 7.2).
Version: 1:7.2+60ubuntu1
Section: universe/php