This function takes a node of a DOM
document and makes it into a SimpleXML node. This new object can
then be used as a native SimpleXML element. If any errors occur,
it returns FALSE.
Пример 1. Import DOM
<?php $dom = new domDocument; $dom->loadXML('<books><book><title>blah</title></book></books>'); if (!$dom) { echo 'Error while parsing the document'; exit; }