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

QXmlStreamReader is reading a well formed xml wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.8.0
    • 4.7.2
    • None
    • Ubuntu 10.10 and 11.04
    • f8573e689ba42ba2d5d7620b534f63af5340e034

    Description

      Execute the code above:

      QXmlStreamReader l_reader("<?xml version=\"1.0\" encoding=\"UTF-8\"?><Configs><Info Date=\"2011-04-20T18:06:57\" Version=\"1.0.0\"/><Db Driver=\"QFIREBIRD\" HostName=\"localhost\" Port=\"3050\" Database=\"/home/alisson/proabakus/KOMPAS/spool/spoolDB.fdb\" User=\"SYSDBA\" Password=\"masterkey\"/></Configs>\n");

      while (l_reader.readNextStartElement())

      { qWarning() << l_reader.name(); foreach (QXmlStreamAttribute l_att, l_reader.attributes()) qWarning() << "\t" << l_att.name() << " = " << l_att.value(); }

      The output is invalid, is only printed:
      "Configs"
      "Info"
      "Date" = "2011-04-20T18:06:57"
      "Version" = "1.0.0"

      But the correct output is:
      "Configs"
      "Info"
      "Date" = "2011-04-20T18:06:57"
      "Version" = "1.0.0"
      "Db"
      "Driver"="QFIREBIRD"
      "HostName"="localhost"
      "Port"="3050"
      "Database"="/home/alisson/proabakus/KOMPAS/spool/spoolDB.fdb"
      "User"="SYSDBA"
      "Password"="masterkey"

      Attachments

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

        Activity

          People

            boddie David Boddie (Inactive)
            israelins85 Israel Lins Albuquerque
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes