Mega Code Archive
Create the script that uses the DOM extension to create a list of title and book_id attributes
getElementsByTagName("book");
foreach($books as $book) {
$titles = $book->getElementsByTagName("title");
foreach($titles as $title) {
echo $title->nodeValue . " - ";
}
$id = $book->getAttribute("book_id");
echo "book_id = $id\n";
}
?>