Annotation of embedaddon/php/ext/simplexml/tests/profile05.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: SimpleXML [profile]: Accessing an aliased namespaced element
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("simplexml")) print "skip"; ?>
! 5: --FILE--
! 6: <?php
! 7: error_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:
! 14: echo $root->children('reserved')->child;
! 15: echo "\n---Done---\n";
! 16: ?>
! 17: --EXPECT--
! 18: ---Done---
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>