note 47105 deleted from function.dom-domnode-removechild by tularis

From: Date: Wed, 03 Nov 2004 06:54:53 +0000
Subject: note 47105 deleted from function.dom-domnode-removechild by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79534@lists.php.net to get a copy of this message
Note Submitter: checksum at checksum.net.nz ---- ie XML: <CONTENT> <PART/> <PART/> <PART/> </CONTENT> PHP: $node = $dom->getElementsByTagname("CONTENT"); $child = $dom->getElementsByTagname("PART"); $node->item(0)->removeChild($child->item(2)); would remove the last PART node ---- Reason: useless example

« previous php.notes (#79534) next »