I've been trying to use the xml.dom.minidom parser to read-in XML data
for an app I'm building and App Engine always throws an error whenever
I reference the minidom.parse() method in my code.

Here's the code:

from xml.dom import minidom
from google.appengine.api import urlfetch

class AppMain(webapp.RequestHandler):
        def get(self):
                url = 'http://foo.com/bar/mydata.xml'
                result = urlfetch.fetch(url)
                if result.status_code == 200:
                        self.response.out.write('got this far!')
                        try:
                                dom = minidom.parse(result)
                        except:
                                self.response.out.write('failed!')

I'm getting exceptions.ImportError.  Thanks for your help!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to