The DOM extension allows you to operate on XML documents through the DOM API with PHP.

Note:

The DOM extension uses UTF-8 encoding. Use class="function">utf8_encode and class="function">utf8_decode to work with texts in ISO-8859-1 encoding or iconv for other encodings.