[xml] Strange error depending on buffer size

Date view Thread view Subject view Author view

From: Manuel Guesdon (ml@oxymium.net)
Date: Tue Feb 13 2001 - 17:52:18 EST


Hello,

I've made a program to parse the attached file. It call xmlParseChunk with the entire content of the file.
It works but if I add a character anywhere in this file, it fail

For exemple the end of the file is

<ric name="LL52492ZZZ">
<fid id="ZZZZZZZ"><![CDATA[AAAAAAGEN ELECTR]]></fid>
<fid id="SSSSSSSS">QQQ</fid>
<fid id="OOOO">-XX</fid>
</ric>
<ric name="F">
<fid id="SSSSSSSS">QQQ</fid>
</ric>

This works.

If I add a X on the "OOOO" line, it fail

<ric name="LL52492ZZZ">
<fid id="ZZZZZZZ"><![CDATA[AAAAAAGEN ELECTR]]></fid>
<fid id="SSSSSSSS">QQQ</fid>
<fid id="OOOO">X-XX</fid>
</ric>
<ric name="F">
<fid id="SSSSSSSS">QQQ</fid>
</ric>

I can add any character anywhere with the same result. Even a black line produce the same result.

I get a "PP: lookup '>' failed"
and after, when calling xmlParseChunk whith null buffer to finish, I get
"xmlParserInput: base mismatch problem
buffer 81247c0 : content 811ae20, base = 8126e00, cur 5, use 2020, size 8100"
(I've added "base = " output).

Another element: if I split the buffer in 2 parts (lengh/2 for the first part and the end for the second), it works.

My programme works well on many files of size greater or lesser than this one but it seems to fail on files with
particular size like this one. As far as I can see, if I parse other files before or don't, it always append on this file.

Any help is welcome !

Manuel

--
______________________________________________________________________
Manuel Guesdon - OXYMIUM <mguesdon@oxymium.net>
14 rue Jean-Baptiste Clement  -  93200 Saint-Denis  -  France
Tel: +33 1 4940 0999  -  Fax: +33 1 4940 0998

---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Feb 13 2001 - 18:43:35 EST