This code used to work, but appears to have stopped working at some
point. I suspect it's either a unicode or escaping thing. I'm trying
to use Amazon web services and return books:

amazonfile = urllib.urlopen("http://webservices.amazon.com/onca/xml?
Service=AWSECommerceService&AWSAccessKeyId=mykey&AssociatesId=myID&Operation=ItemSearch&Author=myAuthor&SearchIndex=Books&ResponseGroup=Medium").read
()

xml = xmltramp.parse(amazonfile)

for item in xml.Items:
   ""do stuff. For purposes of debugging..."
  print item.ItemAttributes.Title

It fails with "no child element named ItemAttributes"

Looking at the XML, I clearly see ItemAttributes as a child of Items.

When I have it print xml, I'm not seeing an xml format, so that's why
I'm suspecting some kind of unicode or escaping problem.

Thoughts?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to