Re: [Tutor] trying to parse an xml file

2013-12-15 Thread Stefan Behnel
Steven D'Aprano, 14.12.2013 23:22: > On Sat, Dec 14, 2013 at 09:29:00AM -0500, bruce wrote: >> Looking at a file -->> >> http://www.marquette.edu/mucentral/registrar/snapshot/fall13/xml/BIOL_bysubject.xml >> >> The file is generated via online/web url, and appears to be XML. >> >> However, when I u

Re: [Tutor] trying to parse an xml file

2013-12-14 Thread Dave Angel
On Sun, 15 Dec 2013 09:22:09 +1100, Steven D'Aprano wrote: I cannot reproduce that error. Perhaps you have inadvertently corrupted Another approach to narrow the problem might be to compare md5 hashes for your files. If you and the op have different hashes then he's probably got a corrupt fi

Re: [Tutor] trying to parse an xml file

2013-12-14 Thread Steven D'Aprano
On Sat, Dec 14, 2013 at 09:29:00AM -0500, bruce wrote: > Hi. > > Looking at a file -->> > http://www.marquette.edu/mucentral/registrar/snapshot/fall13/xml/BIOL_bysubject.xml > > The file is generated via online/web url, and appears to be XML. > > However, when I use elementtree: > document = E

Re: [Tutor] trying to parse an xml file

2013-12-14 Thread Steven D'Aprano
On Sat, Dec 14, 2013 at 04:03:09PM +0100, spir wrote: > On 12/14/2013 03:29 PM, bruce wrote: [...] > >Anyone have any python suggestions as to how to proceed to parse out the > >data! > > You do not tell us what you actually want to do. Since the input is invalid > (as XML), obviously you cannot

Re: [Tutor] trying to parse an xml file

2013-12-14 Thread Felix Dietrich
bruce writes: > Looking at a file -->> > http://www.marquette.edu/mucentral/registrar/snapshot/fall13/xml/BIOL_bysubject.xml> > > However, when I use elementtree: > > document = ElementTree.parse( '/apps/parseapp2/testxml.xml' ) > > I get an invalid error : not well-formed (invalid token): > >

Re: [Tutor] trying to parse an xml file

2013-12-14 Thread spir
On 12/14/2013 03:29 PM, bruce wrote: Hi. Looking at a file -->> http://www.marquette.edu/mucentral/registrar/snapshot/fall13/xml/BIOL_bysubject.xml The file is generated via online/web url, and appears to be XML. However, when I use elementtree: document = ElementTree.parse( '/apps/parseapp

Re: [Tutor] trying to parse an xml file

2013-12-14 Thread Stefan Behnel
bruce, 14.12.2013 15:29: > Looking at a file -->> > http://www.marquette.edu/mucentral/registrar/snapshot/fall13/xml/BIOL_bysubject.xml That file looks ok to me. > The file is generated via online/web url, and appears to be XML. > > However, when I use elementtree: > document = ElementTree.pa

[Tutor] trying to parse an xml file

2013-12-14 Thread bruce
Hi. Looking at a file -->> http://www.marquette.edu/mucentral/registrar/snapshot/fall13/xml/BIOL_bysubject.xml The file is generated via online/web url, and appears to be XML. However, when I use elementtree: document = ElementTree.parse( '/apps/parseapp2/testxml.xml' ) I get an invalid error