sterling Sat Jan 17 16:44:23 2004 EDT Modified files: /php-src/ext/simplexml/examples security.php xpath.php Log: update the examples Index: php-src/ext/simplexml/examples/security.php diff -u php-src/ext/simplexml/examples/security.php:1.4 php-src/ext/simplexml/examples/security.php:1.5 --- php-src/ext/simplexml/examples/security.php:1.4 Sun Oct 26 13:56:03 2003 +++ php-src/ext/simplexml/examples/security.php Sat Jan 17 16:44:22 2004 @@ -2,5 +2,5 @@ $s = simplexml_load_file('security.xml'); echo $s->id; $s->id = 20; -$s->to_xml_file('security.new.xml'); +$s->asXML('security.new.xml'); ?> Index: php-src/ext/simplexml/examples/xpath.php diff -u php-src/ext/simplexml/examples/xpath.php:1.1 php-src/ext/simplexml/examples/xpath.php:1.2 --- php-src/ext/simplexml/examples/xpath.php:1.1 Sun Oct 26 14:15:52 2003 +++ php-src/ext/simplexml/examples/xpath.php Sat Jan 17 16:44:22 2004 @@ -1,7 +1,7 @@ <?php $books = simplexml_load_file('book.xml'); -$xpath_result = $books->xsearch("/books/book/title"); +$xpath_result = $books->xpath("/books/book/title"); foreach($xpath_result as $entry ) { print "$entry \n"; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php