Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://old.master.cmc.msu.ru/php/function.domxml-root.html
Дата изменения: Sun Feb 3 22:37:40 2002 Дата индексирования: Tue Oct 2 04:55:28 2012 Кодировка: |
Warning |
This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change in a future release of PHP without notice. Be warned and use this function at your own risk. |
domxml_root() takes one argument, an object of class "Dom document", and returns the root element node. There are actually other possible nodes like comments which are currently disregarded.
The following example returns just the element with name CHAPTER and prints it. The other root node -- the comment -- is not returned.