DOM Module - Parsing HTML Documents

This chapter provides tutorial examples and notes on DOM module for parsing HTML documents. Topics include understanding DOM Extension; parsing HTML document string; building new 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

Takeaways:

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

 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