* fcl-xml: Fixed parsing DTD, whitespace after name is mandatory only if followed by ExternalID. Mantis #29569.

git-svn-id: trunk@33040 -
This commit is contained in:
sergei 2016-02-02 02:27:28 +00:00
parent 2e64c63993
commit 9b25ce2007

View File

@ -1911,12 +1911,15 @@ begin
CheckName; CheckName;
SetString(FDocType.FName, FName.Buffer, FName.Length); SetString(FDocType.FName, FName.Buffer, FName.Length);
DTDName := FNameTable.FindOrAdd(FName.Buffer, FName.Length); DTDName := FNameTable.FindOrAdd(FName.Buffer, FName.Length);
SkipS(True);
if SkipS then
begin
StoreLocation(Locs[0]); StoreLocation(Locs[0]);
HasAtts := ParseExternalID(FDocType.FSystemID, FDocType.FPublicID, Locs[1], False); HasAtts := ParseExternalID(FDocType.FSystemID, FDocType.FPublicID, Locs[1], False);
if HasAtts then if HasAtts then
Locs[2] := FTokenStart; Locs[2] := FTokenStart;
SkipS; SkipS;
end;
if CheckForChar('[') then if CheckForChar('[') then
begin begin