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(); Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.