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.