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

Closed
ahpierce opened this Issue Mar 16, 2013 · 1 comment

Projects

None yet

2 participants

@ahpierce

Poco 1.4.6p1

example xml with DOCTYPE containing PUBLIC and SYSTEM identifiers:

1

When this XML document is parsed by DOMParser, the resulting Document has both systemId and publicId values set(correctly). However, when DOMWriter is used to generate XML from the Document, the DOCTYPE is generated incorrectly(a spurious SYSTEM keyword).
...

...

This appears to be a bug in XMLWriter::startDTD(), which incorrectly adds the SYSTEM keyword regardless of whether or not PUBLIC exists.

@obiltschnig
Member

fixed in 1.4.6p2 and develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment