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

QDomDocument violates XML DOM standard by default

XMLWordPrintable

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

      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?

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes