Skip to main content
Published: June 26 2007, 4:22:00 PMUpdated: November 28 2020, 3:50:23 PM

You will need to enable the extension php_domxml and restart Apache to load the PHP 4 XML parser.

Detailed Description

XML parsers for PHP 4 and PHP 5 are discussed in this Knowledge Base article. The PHP 4 samples use the php_domxml extension, so this extension must be enabled. To enable in Windows, please locate your php.ini file and uncomment the following extension by removing the leading semi-colon (which is a comment indicator). Please see this article for information about phpinfo() and php.ini.


For PHP 4.3 and 4.4, you also need to make iconv.dll available on your system’s PATH. iconv.dll is in the dlls directory in your PHP 4 installation. One way to get it on your PATH is to copy iconv.dll to your C:\windows\system32 directory. However, a preferred way to get it on your PATH is to move iconv.dll up one level to where your php.exe is and ensure your php.exe directory (ex. C:\php) is on your PATH.

Reboot Apache and your extension should be available.

You can confirm the domxml existence with a call to phpinfo().

Additional resources
PHP 4 DOMXML information on :

How well did this answer your question?
Answers others found helpful