summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/profile04.phpt
blob: 27714e992710b7ac9f42412da7a5d9791e4e9ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
SimpleXML [profile]: Accessing a namespaced element
--SKIPIF--
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
--FILE--
<?php 
$root = simplexml_load_string('<?xml version="1.0"?>
<root xmlns:reserved="reserved-ns">
 <reserved:child>Hello</reserved:child>
</root>
');

echo $root->children('reserved-ns')->child;
echo "\n---Done---\n";
?>
--EXPECT--
Hello
---Done---