Salve,
ho sempre usato un semplice script in ASP per la visualizzazione di un file xml (di news) sul mio sito.
Ora però volevo utilizzare le API di Google Books per poter avere le informazioni relative ad un determinato libro passando a Google il codice ISBN.
http://books.google.com/books/feeds/volumes?8860735157
la pagina restituita è in questo formato:
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"
xmlnspenSearch="http://a9.com/-/spec/opensearchrss/1.0/"
xmlns:gbs="http://schemas.google.com/books/2008"
xmlns:dc="http://purl.org/dc/terms"
xmlns:gd="http://schemas.google.com/g/2005">
<id>http://www.google.com/books/feeds/volumes</id>
<updated>2008-08-12T23:25:35.000</updated>
<category scheme="http://schemas.google.com/g/2005#kind"
term="http://schemas.google.com/books/2008#volume"/>
<title type="text">Search results for it is a truth universally acknowledged</title>
<link rel="alternate"
type="text/html"
href="http://www.google.com"/>
<link rel="http://schemas.google.com/g/2005#feed"
type="application/atom+xml"
href="http://www.google.com/books/feeds/volumes"/>
<link rel="self"
type="application/atom+xml"
href="http://www.google.com/books/feeds/volumes?q=IT+IS+A+TRUTH+universally+acknowledged"/>
<link rel="next"
type="application/atom+xml"
href="http://www.google.com/books/feeds/volumes?q=IT+IS+A+TRUTH+universally+acknowledged&s tart-index=11&max-results=10"/>
<author>
<name>Google Book Search</name>
<uri>http://www.google.com</uri>
</author>
<generator version="beta">Google Book Search data API</generator>
<openSearch:totalResults>597</openSearch:totalResults>
<openSearch:startIndex>1</openSearch:startIndex>
<openSearch:itemsPerPage>20</openSearch:itemsPerPage>
<entry>
<id>http://www.google.com/books/feeds/volumes/8cp-Z_G42g4C</id>
<category scheme="http://schemas.google.com/g/2005#kind"
term="http://schemas.google.com/books/2008#volume"/>
<title type="text">Pride and Prejudice</title>
<link rel="http://schemas.google.com/books/2008/thumbnail"
type="image/jpeg"
href="http://bks8.books.google.com/books?id=8cp-Z_G42g4C&printsec=frontcover&img=1&zoom=5&sig=ACfU 3U02K8fpEVzzHWYb7cOmTwT57Sq6IA&source=gbs_gdata"/>
<link rel="http://schemas.google.com/books/2008/info"
type="text/html"
href="http://books.google.com/books?id=8cp-Z_G42g4C&dq=IT+IS+A+TRUTH+universally+acknowledged &ie=ISO-8859-1&source=gbs_gdata"/>
<link rel="http://schemas.google.com/books/2008/preview"
type="text/html"
href="http://books.google.com/books?id=8cp-Z_G42g4C&pg=PR7&dq=IT+IS+A+TRUTH+universally+ackno wledged&ie=ISO-8859-1&sig=ACfU3U3vfnNozPFp0krr9m0q8VWLnDvjPA&source=gb s_gdata"/>
<link rel="http://schemas.google.com/books/2008/annotation"
type="application/atom+xml"
href="http://books.google.com/books/feeds/users/me/volumes"/>
<link rel="alternate"
type="text/html"
href="http://books.google.com/books?id=8cp-Z_G42g4C&dq=IT+IS+A+TRUTH+universally+acknowledged &ie=ISO-8859-1"/>
<link rel="self"
type="application/atom+xml"
href="http://www.google.com/books/feeds/volumes/8cp-Z_G42g4C"/>
<gbs:embeddability value="http://schemas.google.com/books/2008#embeddable"/>
<gbs:viewability value="http://schemas.google.com/books/2008#view_partial"/>
<dc:creator>Jane Austen</dc:creator>
<dc:creator>James Kinsley</dc:creator>
<dc:creator>Fiona Stafford</dc:creator>
<dc:date>2004</dc:date>
<dc:description>
If a truth universally acknowledged can shrink quite so rapidly into
the opinion of a somewhat obsessive comic character, the reader may reasonably feel ...
</dc:description>
<dc:format>382</dc:format>
<dc:identifier>8cp-Z_G42g4C</dc:identifier>
<dc:identifier>ISBN:0192802380</dc:identifier>
<dcublisher>Oxford University Press, USA</dc
ublisher>
<dc:subject>Fiction</dc:subject>
<dc:title>Pride and Prejudice</dc:title>
<dc:title>A Novel</dc:title>
</entry>
</feed>
Ma il vecchio codice non funziona. Sapete consigliarmi un codice sempre in ASP con il quale poter leggere questa pagina XML?
Grazie in anticipo per il vostro tempo

penSearch="http://a9.com/-/spec/opensearchrss/1.0/"
ublisher>Oxford University Press, USA</dc
Rispondi quotando
