you have fromstring() for parsing the xml. just fetch it with, e.g. urllib2 and load it with fromstring().
On Saturday, April 25, 2015 at 5:28:15 PM UTC+2, NeoToren wrote: > > Amazon Payments responds to a website with XML. > Amazon doesn't send back an XML to my site - it just displays XML - at the > same URL my website sent a well formed, hashed and signed message. > I need to parse the Amazon XML response into meaningful variables for > moving forward with the purchasing workflow. > > ElementTree can parse XML if fed with a file or a string. > As far as I know ElementTree cannot read directly from an htttp address. > Thus I need scrape the XML from the screen / that URL into a string to > feed ElementTree. > > How can I capture the XML into a string for further parsing > ... or better still... > Any magic to capture AND parse from a URL in a short and sweet way ? > > Thanks > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.