petenka63 Posted October 9, 2007 Share Posted October 9, 2007 hello there, Iam new to php and have the following question: iam trying to remove through php an xml node from an xml document but get the following error, so what am I doing wrong? any help appreciated: error:removeChild() expects parameter 1 to be DOMNode, null given the code I use: if($action == "del"){ $item = $inputdom->documentElement; $oName =$item->getElementsByTagName('item')->item($_REQUEST["row"]); $oldname = $item->removeChild($oName); print $inputdom ->save("articles.xml"); exit(); Link to comment https://forums.phpfreaks.com/topic/72507-domnoderemovechild-expects-parameter-1-to-be-domnode-null-given-in/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.