Skip to content

Don't add redundant xmlns attributes when formatting XML in the cell editor - #4220

Open
deepsidhu1313 wants to merge 1 commit into
sqlitebrowser:masterfrom
deepsidhu1313:fix/xml-editor-namespaces
Open

deepsidhu1313 wants to merge 1 commit into
sqlitebrowser:masterfrom
deepsidhu1313:fix/xml-editor-namespaces

Conversation

@deepsidhu1313

Copy link
Copy Markdown
Contributor

The XML in the cell editor was parsed with QDomDocument::setContent() and
namespace processing enabled. With this, Qt repeats the default xmlns
declaration on every descendant element when the document is serialised
again, which bloated the XML whenever it was formatted or compacted. Turn
namespace processing off so the namespace declarations are preserved as
they are.

Fixes #4189

…editor

The XML in the cell editor was parsed with QDomDocument::setContent() and
namespace processing enabled. With this, Qt repeats the default xmlns
declaration on every descendant element when the document is serialised
again, which bloated the XML whenever it was formatted or compacted. Turn
namespace processing off so the namespace declarations are preserved as
they are.

Fixes sqlitebrowser#4189

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: XML/Text mode changes XML (only when recognized as well-formed XML)

2 participants