Back to index

php5  5.3.10
xpath.php
Go to the documentation of this file.
00001 <?php
00002 $books = simplexml_load_file('book.xml');
00003 
00004 $xpath_result = $books->xpath("/books/book/title");
00005 foreach($xpath_result as $entry ) {
00006     print "$entry \n";
00007 }
00008 
00009 ?>