2 SimpleXML: Simple Inheritance
4 <?php if (!extension_loaded("simplexml")) print "skip"; ?>
8 class simplexml_inherited extends SimpleXMLElement
14 <!DOCTYPE sxe SYSTEM "notfound.dtd">
21 <?test processing instruction ?>
29 var_dump(simplexml_load_string($xml, 'simplexml_inherited'));
34 object(simplexml_inherited)#%d (2) {
41 object(simplexml_inherited)#%d (3) {
48 object(simplexml_inherited)#%d (0) {
51 object(simplexml_inherited)#%d (1) {
53 object(simplexml_inherited)#%d (1) {
55 object(simplexml_inherited)#%d (1) {
57 object(simplexml_inherited)#%d (0) {