The DOM extension allows you to operate on XML documents through the DOM API with PHP 5.
Note: PHP 4 offers an older domxml extension.
Note:
The DOM extension uses UTF-8 encoding. Use utf8_encode() and utf8_decode() to work with texts in ISO-8859-1 encoding or Iconv for other encodings.
richso (2008-05-15 20:49:25)
this module parse and decode XML into utf-8 characters for no matter what the encoding is in you source XML, therefore use carefully for some not-so-standard encoding like "big5-hkscs"