diff options
author | Sterling Hughes <sterling@php.net> | 2004-01-17 21:44:22 (GMT) |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2004-01-17 21:44:22 (GMT) |
commit | 594f6433af44e7d223e30b247c8f995ef90a558e (patch) | |
tree | 7d73ca5db5170989c8eaf19b491b7dc3a5f677c7 /ext/simplexml/examples | |
parent | cb7e90119f4c231e0394622c4465cd846e215fca (diff) | |
download | php-594f6433af44e7d223e30b247c8f995ef90a558e.tar.gz |
update the examples
Diffstat (limited to 'ext/simplexml/examples')
-rw-r--r-- | ext/simplexml/examples/security.php | 2 | ||||
-rw-r--r-- | ext/simplexml/examples/xpath.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/simplexml/examples/security.php b/ext/simplexml/examples/security.php index 9c39191..17897b3 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 23253d7..8fcd987 100644 --- a/ext/simplexml/examples/xpath.php +++ b/ext/simplexml/examples/xpath.php @@ -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"; } |