The DOM extension allows operations on XML and HTML documents through the DOM API with PHP.
Зауваження:
Розширення DOM використовує кодування UTF-8. Обробляти інші кодування можна за допомогою mb_convert_encoding(), UConverter::transcode() або iconv().