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