LazUtils, allow laz2_xmlread to parse internal DOCTYPE definition

git-svn-id: trunk@46084 -
This commit is contained in:
jesus 2014-08-28 19:29:59 +00:00
parent 09e3438275
commit 29f3fc79ef

View File

@ -2498,9 +2498,10 @@ begin
FState := rsDTD; FState := rsDTD;
try try
FDocType.FName := ExpectName; FDocType.FName := ExpectName;
SkipS(True); if SkipS(false) then begin
ParseExternalID(FDocType.FSystemID, FDocType.FPublicID, False); ParseExternalID(FDocType.FSystemID, FDocType.FPublicID, False);
SkipS; SkipS;
end;
finally finally
// DONE: append node after its name has been set; always append to avoid leak // DONE: append node after its name has been set; always append to avoid leak
if FCanonical then if FCanonical then