I am having a terrible time trying to read Dublin Core nodes from a
Google Books XML file. You can see the basic structure here:

http://code.google.com/apis/books/docs/gdata/developers_guide_protocol.html#SearchingForBooks

Here is the code that I am working with:

$address = "http://books.google.com/books/feeds/volumes?q=$q&as-isbn=$isbn";;
$page = file_get_contents($address);
//
$xml = new SimpleXMLElement($page);
$item=$xml->entry[0];
$dc=$item->children("http://purl.org/dc/elements/1.1/";);
echo $dc->creator;

The XML is read just fine, but when I get to the DC elements, I get
nothing. I am stumped.

-- 
Randal Rust
R.Squared Communications
www.r2communications.com
614-370-0036
_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/Show-Participation

Reply via email to