Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: admin/environment/php extension/dom.
Certain Linux distributions do not have this extension included in the minimum PHP package. It can usually be found in one of the optional php-* packages.
For CentOS, you will need to run yum install php-xml, which provides this extension.