$libBase="Delicious Library"; $cols = array( "title" => "Title", "author" => "Author", "genre" => "Genre" ); $doc = domxml_open_file("$libBase/Library Media Data.xml"); $books = $doc->get_elements_by_tagname("book"); $xpath = $doc->xpath_new_context(); $xnode = $xpath->xpath_eval("//items/book"); $books = $xnode->nodeset; ?>
| Title | =$thebook->get_attribute('title')?> | |
| Author | =$thebook->get_attribute('author')?> | |
| ".$i->name()." | ".$i->value()." | |
| Amazon Recommendations | "; $img = "$libBase/Images/Small Covers/".$booki->get_attribute('uuid'); echo "";
if(file_exists($img))
echo " | ";
echo "";
if(count($xlinks)>0)
echo "get_attribute("uuid")."\">";
echo "".$booki->get_attribute('title')." by ".$booki->get_attribute('author').""; if(count($xlinks)>0) echo ""; echo " |
| foreach($cols as $colkey => $colval) { ?> | =$colval?> | } ?>
| if($showimage) { ?>get_attribute('uuid')?>"> |
foreach($cols as $colkey => $colval) { ?>
if($colkey == "title") { ?> get_attribute('uuid')?>">=$book->get_attribute($colkey);?> } else { ?> =$book->get_attribute($colkey);?> } ?> | } ?>