 |
 |
 |
 |
Warning: include(../levoe_menu.php) [ function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domxml-open-file.html on line 46
Warning: include() [ function.include]: Failed opening '../levoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domxml-open-file.html on line 46
|
 |
 |
 |
 | |
|  |
(PHP 4 >= 4.2.1) domxml_open_file - создаёт DOM-объект из XML-файла.
Описаниеobject domxml_open_file (string filename)
Функция разбирает документ XML в файле filename и возвращает объект класса
"Dom document", имеющий свойства, перечисленные выше. Доступ к файлу - read-only.
Пример 1. Открытие xml-документа из файла
<?php
if(!$dom = domxml_open_file("example.xml")) {
echo "Error while parsing the document\n";
exit;
}
$root = $dom->document_element();
?> |
| См. также
domxml_open_mem(), domxml_new_doc(). |  | |
|
 |
 |
 |
 |
Warning: include(../pravoe_menu.php) [ function.include]: failed to open stream: No such file or directory in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domxml-open-file.html on line 151
Warning: include() [ function.include]: Failed opening '../pravoe_menu.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/prime/data/www/prime-speed.ru/Manual_PHP_4/f/domxml-open-file.html on line 151
|
 |
 |
 |
 | |