[Qt-interest] 答复: QDomDocument parser xml

pengliang(彭亮) pengliang at founder.com
Mon Feb 21 08:50:44 CET 2011


Hi

         Right, I wish an option too.

 

 

________________________________

发件人: qt-interest-bounces+pengliang=founder.com at qt.nokia.com [mailto:qt-interest-bounces+pengliang=founder.com at qt.nokia.com] 代表 Tony Rietwyk
发送时间: 2011年2月21日 11:42
收件人: qt-interest at trolltech.com
主题: Re: [Qt-interest] QDomDocument parser xml

 

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/9de1f28a/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 139594 bytes
Desc: image001.jpg
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110221/9de1f28a/attachment.jpe 


More information about the Qt-interest-old mailing list