fixed GH# 128: DOMWriter incorrectly adds SYSTEM keyword to DTD if PUBLIC is already specified

This commit is contained in:
Guenter Obiltschnig
2013-05-24 23:13:03 +02:00
parent e6a24b3101
commit 173f205cb6
3 changed files with 27 additions and 3 deletions

View File

@@ -493,7 +493,11 @@ void XMLWriter::startDTD(const XMLString& name, const XMLString& publicId, const
}
if (!systemId.empty())
{
writeMarkup(" SYSTEM \"");
if (publicId.empty())
{
writeMarkup(" SYSTEM");
}
writeMarkup(" \"");
writeXML(systemId);
writeMarkup("\"");
}