Files
php-src/ext/simplexml/examples/xpath.php
T
2003-10-26 19:15:52 +00:00

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