[Qt-interest] QDomDocument parser xml
Jason H
scorp1us at yahoo.com
Wed Feb 23 22:49:25 CET 2011
I'd say read through the replies, but to recap:
XML does not specify ordering of attributes.
It is handy to have attributes always in the same order for comparison reasons
(be it MD5 or diff comparisons)
In XML, the order of elements is specified (a mistake*, IMHO) so this is not a
concern.
*If your XML elements need an order, then they should have an attribute that
specifies their order
If you do not have stable attribute positions, then you do a DOM walk to compare
the content of two documents.
________________________________
From: "Malyushytsky, Alex" <alex at wai.com>
To: "qt-interest at trolltech.com" <qt-interest at trolltech.com>
Sent: Wed, February 23, 2011 4:02:00 PM
Subject: Re: [Qt-interest] QDomDocument parser xml
Why the order of attributes is important?
Alex
From:qt-interest-bounces+alex=wai.com at qt.nokia.com
[mailto:qt-interest-bounces+alex=wai.com at qt.nokia.com] On Behalf Of
pengliang(??)
Sent: Sunday, February 20, 2011 6:01 PM
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
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
“This message and any attachments are solely for the intended recipient and may
contain confidential or privileged information. If you are not the intended
recipient, any disclosure, copying, use, or distribution of the information
included in this message and any attachments is prohibited. If you have received
this communication in error, please notify us by reply e-mail and immediately
and permanently delete this message and any attachments. Thank you.”
“Please consider our environment before printing this email.”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110223/ce0f6453/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 139594 bytes
Desc: image001.jpg
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110223/ce0f6453/attachment.jpg
More information about the Qt-interest-old
mailing list