PHP Modules Tutorials - Herong's Tutorial Examples - v5.18, by Herong Yang
DOM (Document Object Model) Module
This section describes what is DOM (Document Object Model) Module, which allows you to parse XML and HEML documents.
What Is DOM (Document Object Model) Module? - DOM module, also called DOM Extension allows you to operate on XML or HTML documents through the DOM (Document Object Model) API with PHP. Zip Module was introduced in PHP 5 and requires the libxml module, which is based the libxml C library.
DOM module is included in most PHP distribution packages. On some versions, you may need to enable it explicitly in the php.ini configuration file using one of the following settings:
extension=dom extension=dom.so extension=php_domxml.dll
Here is list of some classes and methods provided in DOM module:
For more information on DOM module, see PHP documentation at php.net/manual/en/book.dom.php.
Table of Contents
Introduction and Installation of PHP
Managing PHP Engine and Modules on macOS
Managing PHP Engine and Modules on CentOS
►DOM Module - Parsing HTML Documents
►DOM (Document Object Model) Module
Parse and Traverse HTML Documents
Load HTML Documents with LIBXML_NOBLANKS
Remove Whitespaces in HTML Documents
DOCTYPE Element in HTML Documents
Remove Dummy Elements in HTML Documents
Install DOM Extension on CentOS
GD Module - Manipulating Images and Pictures
MySQLi Module - Accessing MySQL Server
OpenSSL Module - Cryptography and SSL/TLS Toolkit
PCRE Module - Perl Compatible Regular Expressions
SOAP Module - Creating and Calling Web Services
SOAP Module - Server Functions and Examples