On 28 feb, 08:18, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
On Wed, 27 Feb 2008 14:02:25 -0800, dirkheld wrote:
Something strange here. The xml file causing the problem has only 361
lines. Isn't there a way to catch this error, ignore it and continu
with the rest of the other files?
dirkheld wrote:
On 28 feb, 08:18, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote:
On Wed, 27 Feb 2008 14:02:25 -0800, dirkheld wrote:
Something strange here. The xml file causing the problem has only 361
lines. Isn't there a way to catch this error, ignore it and continu
with the rest of
On Thu, 28 Feb 2008 12:37:10 -0800, dirkheld wrote:
Yes of course: handle the exception instead of letting it propagate to the
top level and ending the program.
Ehm, maybe a stupid question... how. I'm rather new to python and I
never user error handling.
Then you should work through the
Hi,
I have written a piece of code that reads all xml files in a directory
in onder to retrieve one element in each of these files. All files
have the same XML structure. After file 123 I receive the following
error :
xml.parsers.expat.ExpatError: not well-formed (invalid token): line
554,
dirkheld [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
xml.parsers.expat.ExpatError: not well-formed (invalid token): line
554, column 20
I guess that the element I try to read or the XML(which would be
strange since they have been created with the same code) can't ben
On 27 feb, 17:18, Richard Brodie [EMAIL PROTECTED] wrote:
dirkheld [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
xml.parsers.expat.ExpatError: not well-formed (invalid token): line
554, column 20
I guess that the element I try to read or the XML(which would be
strange
On Wed, 27 Feb 2008 14:02:25 -0800, dirkheld wrote:
Something strange here. The xml file causing the problem has only 361
lines. Isn't there a way to catch this error, ignore it and continu
with the rest of the other files?
Yes of course: handle the exception instead of letting it propagate