mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
fixed GH# 128: DOMWriter incorrectly adds SYSTEM keyword to DTD if PUBLIC is already specified
This commit is contained in:
@@ -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("\"");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user