2 Interop Test: Import from SimpleXML
4 <?php require_once('skipif.inc'); ?>
5 <?php if (!extension_loaded('simplexml')) die('skip simplexml extension not available');?>
8 $s = simplexml_load_file(dirname(__FILE__)."/book.xml");
10 echo "Error while loading the document\n";
13 $dom = dom_import_simplexml($s);
14 print $dom->ownerDocument->saveXML();
20 <title>The Grapes of Wrath</title>
21 <author>John Steinbeck</author>
24 <title>The Pearl</title>
25 <author>John Steinbeck</author>