mirror of
https://github.com/php/php-src.git
synced 2024-10-08 02:06:14 +00:00
10 lines
168 B
PHP
10 lines
168 B
PHP
|
<?php
|
||
|
$books = simplexml_load_file('book.xml');
|
||
|
|
||
|
$xpath_result = $books->xsearch("/books/book/title");
|
||
|
foreach($xpath_result as $entry ) {
|
||
|
print "$entry \n";
|
||
|
}
|
||
|
|
||
|
?>
|