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;
try
FDocType.FName := ExpectName;
SkipS(True);
ParseExternalID(FDocType.FSystemID, FDocType.FPublicID, False);
SkipS;
if SkipS(false) then begin
ParseExternalID(FDocType.FSystemID, FDocType.FPublicID, False);
SkipS;
end;
finally
// DONE: append node after its name has been set; always append to avoid leak
if FCanonical then