Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.2.3
-
None
-
Qt 6.2.3 on Mac running version 10.15.7 Catalina of MacOs. Reference environment for comparison: KUbuntu 20.04 with Qt 5.12.8
Description
When reading the attached example XML file test_bug.xml with the following code, line 12 with two identical "type" attributes silently stops the processing for the rest of the file (see output log_mac1.xml) and checking the return code of setContent() does not hint that anything went wrong:
xml_.setContent(&file, false, &error_msg, &error_line, &error_column);
qDebug() << getXml().toString();
If I comment out this line, the output of toString is as expected (the same as the input, except for the random reordering of the attributes, see output log_mac2.xml). When running this on Linux with Qt5.12.8, the problem does not appear (ie the whole file is processed in all cases).