You are probably missing a readNext() call.
Better put it at the beginning or the end of the loop.
Cheers,
_
You are probably missing a readNext() call.
Better put it at the beginning or the end of the loop.
Cheers,
_
There are several readNext() 's- where I should put next one?
Here is similar question but also without answer -
http://www.qtcentre.org/threads/6454...ments?p=285154
What would you do better in this situation (to extract the xml identically), if have not any suggestion concerning quotes?
The example you post is not well formed XML. I would be surprised if it was written by QXmlStreamWriter.
In all likelihood, the output at lines 2 and 3 is put there by line 25 of your code. QDebug added the quotes and between the quotes are the end of line character and leading spaces from two consecutive lines in the input file. QDebug is a debugging tool not a general purpose output generating tool. The quotes are useful to help tell the difference between an empty string "" and one containing only whitespace characters " ".
If you want a general purpose text output stream then look at QTextStream.
Really, in case of just one readnext() - in the beginning or the end of while loop we can have xml display -but the same in every detail - so my approach is correct and it doesnt influence the quotes - can I directly ask this question in trolltech team?
You have already been told where the quotes came from and it has nothing to do with the QXmlStreamReader.
Trolltech has not existed since circa 2008when it became part of Nokia and later the Qt Company
Bookmarks