QDomDocument setContent shakes attributes
-
I've got some troble reading xml file with a QDomDocument setContent method. It shakes my atrributes in random order. I write xml useing text stream. Then open it by some editors and saw the right order of atrributes. But when I open it using setContent method and save the result, my attributes are in other order than previously.
-
Thanks, lam Sumit. I found the reason. When I'm reading xml file I use QDomDocument. And actually I use attributes() metod of QDomNode to get attributes of node. But if I use that method my attributes will sort in map in random order. So how can I fix that ? Or are thre other ways to get attributes frome node without sequence error ?