#1 wrong length is given to CharactedDataHandler


Don't shure that it is KDS bug, but i can't understand where it comes from.
Using SAX for Pascal with KDS as a vendor.
XML file has an element with "date" <ENDDATE>2011-11-11</ENDDATE>, this value comes to SAX function CharactedDataHandler with right text 2011-11-11, and wrong length (7 but 10), so the result of PSAXCharToSAXString equal '2011-11'. XML File size is 1.5Mb, when i tried to make file smaller for debugging purposes, the error went out, and the right value was loaded for this element. I have many files with such a problem, all whey are > 1MB size, smaller files are reading good.


  • virooz

    virooz - 2012-11-29

    debug screen

  • Karl Waclawek

    Karl Waclawek - 2012-12-16

    I have not used this 6 or 7 years, so I don't remember much.
    From your picture it looks like the issue is happening before control even gets to KDS XML.
    What version of Expat are you using with it?

  • virooz

    virooz - 2012-12-17

    I'v used the lib, that came with KDS XML in zip archive, the date stamp on it is 07.04.2004, no version on the Version tab, so it seems very old (0.5.0 ?). I suggest to replace dll's for newer versions in KDS XML Project page, i think error was caused by the old library (but i really did't have time to verify this variant, i just took another vendor).
    Tnak you for reply.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks