Description
Legacy PHP 5.6 applications can represent XML or HTML documents as a DOM tree and inspect or modify nodes from code. This helps old importers, scrapers, converters, and document-processing systems keep working.
It is a PHP extension for old applications. DOM parsing can consume significant memory on large documents, so applications should limit input size and validate untrusted content.