update the examples

This commit is contained in:
Sterling Hughes 2004-01-17 21:44:22 +00:00
parent cb7e90119f
commit 594f6433af
2 changed files with 2 additions and 2 deletions

View File

@ -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');
?>

View File

@ -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";
}