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 Extenstion 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 infomation, see DOM module documentation at php.net/manual/en/book.dom.php.

Table of Contents

 About This Book

 Introduction and Installation of PHP

 Managing PHP Engine and Modules on macOS

 Managing PHP Engine and Modules on CentOS

 MySQLi Module - Accessing MySQL Server

DOM Module - Parsing HTML Documents

DOM (Document Object Model) Module

 Parse and Traverse HTML Documents

 Build New 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

 Zip Module - Managing ZIP Archive Files

 SOAP Module - Creating and Calling Web Services

 SOAP Module - Server Functions and Examples

 References

 Full Version in PDF/EPUB