Hi,
I don't know why, but I can't seem to get this to work:
Public Sub DoSomething()
Dim sb as New StringBuilder()
sb.Append("http://webservices.amazon.com/onca/xml?")
sb.Append("Service=AWSECommerceService&Subscriptio nId")
sb.Append("=0525E2PQ81DD7ZTWTK82&Operation=ItemSea rch")
sb.Append("&SearchIndex=Books&Keywords=css")
sb.Append("&ResponseGroup=ItemAttributes,Offers")
Dim tr as New XmlTextReader(sb.ToString())
tr.Read()
Dim xDoc as XmlDocument = New XmlDocument()
xDoc.Load(tr)
tr.Close()
Dim oNodeList as XmlNodeList =
xDoc.SelectNodes("/ItemSearchResponse/Items/Item")
Me.Items.Text = oNodeList.Count.ToString()
'xDoc.Save("C:\myfile.xml")
End Sub
To be on the safe side, I even saved the returned xml file just to see
if I was actually receiving a file. All is well on that part. Try as I
may, the oNodeList object always returns 0. Why?
This example seems simple enough, but I'm now pulling hairs off my chest
trying to get it working.
Could someone tell me where the problem is?
Thanks,
Roshawn