On Fri, Sep 18, 2009 at 7:34 PM, Chuck <galois...@gmail.com> wrote: <snip> > I am using Python 3.1, but I can't figure out why I can't use > xml.dom.minidom. Here is my code: > > from xml.dom.minidom import parse, parseString > url = 'http://minnesota.publicradio.org/tools/podcasts/ > grammar_grater.xml' #just for test purposes > > doc = parse(url) #I have also tried parseString(url), not to mention > a million other methods from xml.Etree, xml.sax etc... all to no > avail > > > What the heck am I doing wrong? How can I get this xml file and use > the toprettyxml() method. Or something, so I can parse it. I don't > have any books and the documentation for Python kind of sucks. I am a > complete noob to Python and internet programming. (I'm sure that is > obvious :) )
Impossible to say, considering *you didn't actually state what problem/error you're encountering*. Cheers, Chris -- http://mail.python.org/mailman/listinfo/python-list