note 36998 deleted from function.domdocument-xinclude by didou
| From: | didou@php.net | Date: | Sun, 29 Aug 2004 18:44:05 +0000 |
| Subject: | note 36998 deleted from function.domdocument-xinclude by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75584@lists.php.net to get a copy of this message | ||
Note Submitter: info at sgonda dot de
----
Example use for $dom->xinclude();
<?php
$xi='
<?xml version="1.0"?>
<root xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="dom.xml">
<xi:fallback>
<error>xinclude:dom.xml not found</error>
</xi:fallback>
</xi:include>
</root>
';
$domxml=@domxml_open_mem($xi,DOMXML_LOAD_VALIDATING);
$domxml->xinclude();
echo htmlentities($domxml->dump_mem());
?>
It is helpfull for gettin a Error Message, if XML File could not found!
I hope this helps...