1--TEST--
2simplexml_load_file()
3--SKIPIF--
4<?php if (!extension_loaded("simplexml")) die("skip"); ?>
5--FILE--
6<?php
7	$simple = simplexml_load_file(dirname(__FILE__)."/book.xml");
8
9	var_dump($simple);
10	echo "Done";
11?>
12--EXPECTF--
13object(SimpleXMLElement)#1 (1) {
14  ["book"]=>
15  array(2) {
16    [0]=>
17    object(SimpleXMLElement)#2 (2) {
18      ["title"]=>
19      string(19) "The Grapes of Wrath"
20      ["author"]=>
21      string(14) "John Steinbeck"
22    }
23    [1]=>
24    object(SimpleXMLElement)#3 (2) {
25      ["title"]=>
26      string(9) "The Pearl"
27      ["author"]=>
28      string(14) "John Steinbeck"
29    }
30  }
31}
32Done
33