Re: XML Parsing: Expat Error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fredrik Lundh

    Re: XML Parsing: Expat Error

    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.exp at.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>

Working...