XML Parsing: Expat Error
Fredrik Lundh
fredrik at pythonware.com
Sat Jul 19 14:58:25 EDT 2008
Gerth, William D wrote:
> Hey all, I’m simply trying to get my feet wet with XML parsing, and I
> tried to just do something simple with ElementTree, just throw the XML
> tags from a file into a list. The code is as follows (and may be wrong):
...
> xml.parsers.expat.ExpatError: no element found: line 3, column 0
>
> What can I do to fix this, if anything? My overall goal has been to
> simply get the text of the XML document into a text file, but even that
> has failed (I get naught but gibberish), so any help would be appreciated.
your XML file is broken (note that it's the "parse" function that throws
this error).
</F>
More information about the Python-list
mailing list