xref: /PHP-5.6/ext/simplexml/tests/profile09.phpt (revision 7f5b508f)
1--TEST--
2SimpleXML [profile]: Accessing a namespaced element without a namespace
3--SKIPIF--
4<?php if (!extension_loaded("simplexml")) print "skip"; ?>
5--FILE--
6<?php
7error_reporting(E_ALL & ~E_NOTICE);
8$root = simplexml_load_string('<?xml version="1.0"?>
9<root xmlns:reserved="reserved-ns">
10 <reserved:child>Hello</reserved:child>
11</root>
12');
13
14echo $root->child;
15echo "\n---Done---\n";
16?>
17--EXPECT--
18
19---Done---
20