Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-12235

QDomDocument violates XML DOM standard by default

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.6.3
    • XML: DOM
    • None

    Description

      When a document is parsed via QDomDocument::setContent() and no "namespaceProcessing" argument is given, it defaults to "false".

      That is, unless the programmer explicitly enforces "namespaceProcessing" to be "true", the behavior of QDomDocument, QDomElement etc violate the XML DOM standard. Although this strange behavior is documented, it is a nasty trap that costs programmers quite a lot of time to figure out.

      First of all, why is it even possible to configure QDomDocument to violate the standard? And why is that the default?

      Is there any way to fix that behavior?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            vog Volker Grabsch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes