note 33505 added to function.domnode-set-content

From: Date: Fri, 27 Jun 2003 22:00:48 +0000
Subject: note 33505 added to function.domnode-set-content
Groups: php.notes 
Request: Send a blank email to php-notes+get-51118@lists.php.net to get a copy of this message
As of 4.3.2: $names = $contact->get_elements_by_tagname("name"); $name = $names[0]; $name_text_node = $name->first_child(); $name_text_node->set_content("Joe"); does not work. Currently it looks like dom text nodes are implemented as "domtext", not "domelement" and therefore lack the set_content method. As far as I've been able to tell, replacing is the best solution. ---- Manual Page -- http://www.php.net/manual/en/function.domnode-set-content.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33505 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33505&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33505&report=yes

« previous php.notes (#51118) next »