2
Test: Xinclude and Streams
5
require_once('skipif.inc');
6
array_search('compress.zlib', stream_get_wrappers()) or die('skip compress.zlib wrapper is not available');
10
$dom = new domdocument;
11
$dom->load(dirname(__FILE__)."/xinclude.xml");
13
print $dom->saveXML()."\n";
14
foreach ($dom->documentElement->childNodes as $node) {
15
print $node->nodeName."\n";
20
<foo xmlns:xi="http://www.w3.org/2001/XInclude">
21
<book xml:base="compress.zlib://ext/dom/tests/book.xml">
22
<title>The Grapes of Wrath</title>
23
<author>John Steinbeck</author>
24
</book><book xml:base="compress.zlib://ext/dom/tests/book.xml">
25
<title>The Pearl</title>
26
<author>John Steinbeck</author>