Tried this @katos
$ sudo apt-get install -y php7.4-xml
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
php7.4-xml
0 upgraded, 1 newly installed, 0 to remove and 47 not upgraded.
Need to get 95.6 kB of archives.
After this operation, 407 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 php7.4-xml amd64 7.4.13-1+ubuntu18.04.1+deb.sury.org+1 [95.6 kB]
Fetched 95.6 kB in 1s (129 kB/s)
Selecting previously unselected package php7.4-xml.
(Reading database ... 150673 files and directories currently installed.)
Preparing to unpack .../php7.4-xml_7.4.13-1+ubuntu18.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.4-xml (7.4.13-1+ubuntu18.04.1+deb.sury.org+1) ...
Setting up php7.4-xml (7.4.13-1+ubuntu18.04.1+deb.sury.org+1) ...
Creating config file /etc/php/7.4/mods-available/dom.ini with new version
Creating config file /etc/php/7.4/mods-available/simplexml.ini with new version
Creating config file /etc/php/7.4/mods-available/xml.ini with new version
Creating config file /etc/php/7.4/mods-available/xmlreader.ini with new version
Creating config file /etc/php/7.4/mods-available/xmlwriter.ini with new version
Creating config file /etc/php/7.4/mods-available/xsl.ini with new version
Processing triggers for libapache2-mod-php7.4 (7.4.13-1+ubuntu18.04.1+deb.sury.org+1) ...
Processing triggers for php7.4-cli (7.4.13-1+ubuntu18.04.1+deb.sury.org+1) ...