Class 'XMLWriter' not found

Topics: Developer Forum
May 12, 2008 at 2:14 PM
I have the errors

11:06:56 Create new PHPExcel object 11:06:56 Set properties 11:06:56 Add some data 11:06:56 Rename sheet 11:06:56 Write to Excel2007 format 
Fatal error: Class 'XMLWriter' not found in /Users/myuser/Documents/workspace/Test/PHPExcel/Classes/PHPExcel/Shared/XMLWriter.php on line 62

when I try 01simple.php and others examples..

i saw a topic about this, but it didnt have an answer.
please anyone help me.

thank you for your attetion
May 13, 2008 at 6:54 AM
Please make sure you have php_zip and php_xml modules installed.
Sep 25, 2009 at 11:59 AM


Can you tell me where the php_xml fial can be found. Im having the same problem:

PHP Fatal error:  Class 'XMLWriter' not found in /var/www/ on line 66


Sep 26, 2009 at 12:41 AM

@tayfusion: If you are on a shared host you will probably need to write an email to the server administrator and ask him to enable XMLWriter extension in PHP.