From: Sterling Hughes Date: Sat, 17 Jan 2004 21:44:22 +0000 (+0000) Subject: update the examples X-Git-Tag: php_ibase_before_split~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=594f6433af44e7d223e30b247c8f995ef90a558e;p=php update the examples --- diff --git a/ext/simplexml/examples/security.php b/ext/simplexml/examples/security.php index 9c39191361..17897b3fd7 100644 --- a/ext/simplexml/examples/security.php +++ b/ext/simplexml/examples/security.php @@ -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'); ?> diff --git a/ext/simplexml/examples/xpath.php b/ext/simplexml/examples/xpath.php index 23253d7b74..8fcd9878ab 100644 --- a/ext/simplexml/examples/xpath.php +++ b/ext/simplexml/examples/xpath.php @@ -1,7 +1,7 @@ xsearch("/books/book/title"); +$xpath_result = $books->xpath("/books/book/title"); foreach($xpath_result as $entry ) { print "$entry \n"; }