note 13613 added to function.xpath_eval.php

From: Date: Sun, 24 Jun 2001 18:35:24 +0000
Subject: note 13613 added to function.xpath_eval.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14606@lists.php.net to get a copy of this message
$ctx = xpath_new_context($doc); $xpath_nodes = xpath_eval($ctx, "//some_element"); $xpath_nodes->nodeset[i]->set_content($string) allows you to set the node content. Try it and then do a $doc->dumpmem, you'll see the nodes in the original document are indeed updated properly. I've used this feature lots. It does work. http://www.php.net/manual/en/function.xpath_eval.php

« previous php.notes (#14606) next »