seco Posted January 5, 2008 Share Posted January 5, 2008 Hi i try to write the following code $doc = domxml_new_doc("1.0"); $node = $doc->create_element("para"); $newnode = $doc->append_child($node); // this line 71 $newnode->set_attribute("align", "left"); // this line is 72 it gives me error says:- Warning: domnode::append_child() expects parameter 1 to be object, null given in C:\wamp\www\test.php on line 71 Fatal error: Call to a member function set_attribute() on a non-object in C:\wamp\www\test.php on line 72 any help? thanks in advance. Link to comment https://forums.phpfreaks.com/topic/84611-domnodeappend_child-expects-parameter-1-to-be-object/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.