Closed rassemdev closed 4 years ago
Thanks for submitting the ticket. Unfortunately the information you provided is incomplete. We need to know which version you use and how to reproduce it. Please include code examples. Before we can pick it up, please check (https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/.github/ISSUE_TEMPLATE.md) and add the missing information. To make processing of this ticket a lot easier, please make sure to check (https://laravel-excel.maatwebsite.nl/3.1/getting-started/contributing.html) and double-check if you have filled in the issue template correctly. This will allow us to pick up your ticket more efficiently. Issues that follow the guidelines correctly will get priority over other issues.
PhpSpreadsheet doesn't have an XML writer. The Excel::XML
type is only available as reader.
I'm running ubuntu 22.04 on my hosting server and I managed to get around this eror
sudo apt-get install php-xml
sudo snap install xmlstarlet
and then restarting the server for
sudo systemctrl restart nginx.service
I'm using Laravel-Excel v3.1 with(PHP v7.2.24, Laravel v6.2) to import/export data into various formats. But i'm having trouble while exporting to XML. When i'm exporting to xml the following error occurring
No writer found for type Xml
. I'm not getting any clue or resources to solve this problem. Exporting to other format (csv, xlsx) working fine. Can anyone help me out with this one! Thank You.Here is my code: In Controller:
Then LoanInfoExport.php:
I'm using Ubuntu 18.04 with Lamp server.