[Qt-interest] QDomDocument parser xml

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Mon Feb 21 04:42:28 CET 2011


Hi, 
 
It seems in 4.6.0 QDomDocument uses a hash to store the attributes, so the
order of adding or loading them is not preserved.  I assume this was done
for performance reasons.  I wish there was an option to change this, but I
won't hold my breath!  
 
Tony
 
 

-----Original Message-----
From: qt-interest-bounces+tony.rietwyk=rightsoft.com.au at qt.nokia.com
[mailto:qt-interest-bounces+tony.rietwyk=rightsoft.com.au at qt.nokia.com] On
Behalf Of pengliang(?íáá)
Sent: Monday, 21 February 2011 13:01
To: qt-interest at trolltech.com
Subject: [Qt-interest] QDomDocument parser xml



Hi All

         Anybody can tell me why:

         It’s strangely that I set attributes and save xml, some attributes
have been moved to other position.

 

 



Thanks

Ken

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110221/6ebe021d/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 139594 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110221/6ebe021d/attachment.jpe 


More information about the Qt-interest-old mailing list