php extension xml install code example Example: Install or enable PHP's xml extension sudo apt-get install php-xml