001+ Notice: Undefined property: DOMDocument::$documentElement in %s/dom_set_attr_node.php on line 15
002+
003+ Fatal error: Uncaught Error: Call to a member function getAttributeNode() on null in %s/dom_set_attr_node.php:16
004+ Stack trace:
005+ #0 {main}
006+ thrown in %s/dom_set_attr_node.php on line 16
001- object(DOMException)#%d (7) {
002- ["message":protected]=>
003- string(20) "Wrong Document Error"
004- ["string":"Exception":private]=>
005- string(0) ""
006- ["file":protected]=>
007- string(%d) "%sdom_set_attr_node.php"
008- ["line":protected]=>
009- int(%d)
010- ["trace":"Exception":private]=>
011- array(1) {
012- [0]=>
013- array(6) {
014- ["file"]=>
015- string(%d) "%sdom_set_attr_node.php"
016- ["line"]=>
017- int(%d)
018- ["function"]=>
019- string(16) "setAttributeNode"
020- ["class"]=>
021- string(10) "DOMElement"
022- ["type"]=>
023- string(2) "->"
024- ["args"]=>
025- array(1) {
026- [0]=>
027- DOMAttr
028- }
029- }
030- }
031- ["previous":"Exception":private]=>
032- NULL
033- ["code"]=>
034- int(4)
035- }