laz_xmlread: skipping end of file chars (#26) at end of xml

git-svn-id: trunk@15903 -
This commit is contained in:
mattias 2008-07-28 13:11:49 +00:00
parent 4565dbfac4
commit 9e45d8aedd

View File

@ -442,6 +442,9 @@ begin
end;
{$ENDIF}
// skip end of file characters
while buf^=#26 do inc(buf);
// check if whole document was read
if buf[0] <> #0 then
RaiseExc('Text after end of document element found');
end;