Skip to content

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

@ahpierce

Description

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions