[XML-SIG] pyxml xml parser error, help needed

joachim.j.gloger@daimlerchrysler.com joachim.j.gloger@daimlerchrysler.com
Tue, 09 Oct 2001 17:59:16 +0200


Hi,

I have a problem. My xml parser crashes. The parser is based on pyXml, =
the=20
latest version. Since I thought that it was my fault I tried to check t=
he xml=20
file which causes the crash with one of the pyxml demo programs 'saxtra=
ce.py'.

But to my surprise, saxtrace did also crash with the same error message=
.=20
Enclosed you find the message. By the way, the crash happens on both Wi=
ndows=20
and Linux. The behaviour is exactly the same. I tried also several vers=
ions of=20
python (2.0 and 2.1) and the last two versions of pyxml, but this makes=
 no=20
difference.

If there is a possibility to give one of the developers the crash causi=
ng xml=20
file, I can do that. Please let me know, if you need this file.

Regards
Joachim Gloger


Traceback (most recent call last):
  File "saxtrace.py", line 70, in ?
    p.parse(sys.argv[1])
  File "C:\Python21\_xmlplus\sax\drivers\drv_xmlproc.py", line 31, in p=
arse
    self.parser.parse_resource(sysID)
  File "C:\Python21\_xmlplus\parsers\xmlproc\xmlutils.py", line 77, in =
parse_res
ource
    self.read_from(infile,bufsize)
  File "C:\Python21\_xmlplus\parsers\xmlproc\xmlutils.py", line 137, in=
 read_fro
m
    self.feed(buf)
  File "C:\Python21\_xmlplus\parsers\xmlproc\xmlutils.py", line 185, in=
 feed
    self.do_parse()
  File "C:\Python21\_xmlplus\parsers\xmlproc\xmlproc.py", line 96, in d=
o_parse
    self.parse_start_tag()
  File "C:\Python21\_xmlplus\parsers\xmlproc\xmlproc.py", line 149, in =
parse_sta
rt_tag
    if self.data[self.pos]!=3D">" and self.data[self.pos]!=3D"/":
IndexError: string index out of range




=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
J. M. Gloger, DaimlerChrysler AG, Research Center Ulm
P.O. Box 2360, 89013 Ulm, Germany

Phone: +49 731 505 2353
Fax:   +49 731 505 4113
Email: joachim.j.gloger@daimlerchrysler.com

                                              walk the talk
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=