Jump to content

Error with XML append_child?


nimzie

Recommended Posts

// Start XML file, create parent node
$doc = domxml_new_doc("1.0");
$node = $doc->create_element("markers");
$parnode = $doc->append_child($node);

 

gives me:

 

Warning: domnode::append_child() expects parameter 1 to be object, null given in C:\xampp\htdocs\xampp\origin\admin\google\index.php on line 7

 

I'm not sure I understand.. I checked to see that domxml is there and working. It is...

I'm assuming $doc is getting created, cause it's not giving any info @ the create_element command...

 

I think I am using php4.

Link to comment
https://forums.phpfreaks.com/topic/85605-error-with-xml-append_child/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.