Hi,
I'm parsing XML files using ElementTree from xml.etree (see code below (and
attached xml_parse_example.py)).
However, I'm coming across input XML files (attached an example: tmp.xml) which
include invalid characters, that produce the following traceback:
$ python xml_parse_example.py
Barak, Ron, 04.05.2010 09:01:
I'm parsing XML files using ElementTree from xml.etree (see code below
(and attached xml_parse_example.py)).
However, I'm coming across input XML files (attached an example:
tmp.xml) which include invalid characters, that produce the following
traceback:
$ python
-Original Message-
From: Stefan Behnel [mailto:stefan...@behnel.de]
Sent: Tuesday, May 04, 2010 10:24 AM
To: python-list@python.org
Subject: Re: How to get xml.etree.ElementTree not bomb on
invalid characters in XML file ?
Barak, Ron, 04.05.2010 09:01:
I'm parsing XML files
Barak, Ron, 04.05.2010 16:11:
I'm parsing XML files using ElementTree from xml.etree (see code
below (and attached xml_parse_example.py)).
However, I'm coming across input XML files (attached an example:
tmp.xml) which include invalid characters, that produce the
following traceback:
$
On 5/4/2010 11:37 AM, Stefan Behnel wrote:
Barak, Ron, 04.05.2010 16:11:
The XML file seems to be valid XML (all XML viewers I tried were able
to read it).
From Internet Explorer:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error
and
On May 5, 12:11 am, Barak, Ron ron.ba...@lsi.com wrote:
-Original Message-
From: Stefan Behnel [mailto:stefan...@behnel.de]
Sent: Tuesday, May 04, 2010 10:24 AM
To: python-l...@python.org
Subject: Re: How to get xml.etree.ElementTree not bomb on
invalid characters in XML file ?
On May 5, 3:43 am, Terry Reedy tjre...@udel.edu wrote:
On 5/4/2010 11:37 AM, Stefan Behnel wrote:
Barak, Ron, 04.05.2010 16:11:
The XML file seems to be valid XML (all XML viewers I tried were able
to read it).
From Internet Explorer:
The XML page cannot be displayed
Cannot view XML