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

QDomDocument does not parse certain nodes correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.7.1
    • XML: DOM
    • None
    • Windows 7

    Description

      I have a xml file with contents:
      <xml>
      ...
      <url>http://www.stephenfry.com/?feed=podcast&format=audio</url>
      ...
      </xml>

      This is then read into QFile and set as content into a QDomDocument:
      QDomDocument *doc = new QDomDocument("document");
      doc->setContent(&file, false);
      qDebug() << doc->toString();

      toString() returns:
      "<xml>
      ...
      <url/>
      ...
      </xml>"

      If I change xml file's <url> content to:
      <url>http://www.stephenfry.com/?feed=podcast</url>

      -> this is parsed correctly.
      -> "&format=audio" part somehow causes this failure?

      Attachments

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

        Activity

          People

            phartman Peter Hartmann (closed Nokia identity) (Inactive)
            batonki Ari Hannula
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes