[Qt-interest] ç­"复: QDomDocument parser xml

Atlant Schmidt aschmidt at dekaresearch.com
Mon Feb 21 12:47:48 CET 2011


André:

  Well, I can think of one reason why it would have
  been nice to keep the attributes ordered:

  Random swapping around of attributes leads to new file
  versions appearing to be different when they really
  aren't. This confuses the history maintained by code
  management systems, leads to extra work (and a greatly-
  increased likelihood of errors) by the humans doing
  code review ("Is this a real change or just Qt swapping
  attributes around? I don't know, we'll have to inspect
  each attribute individually and hope we correctly assess
  all of the changes :-(."), and screws up a lot of
  automation that expects that files don't gratuitously
  change.

                          Atlant

-----Original Message-----
From: qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com [mailto:qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com] On Behalf Of Andre Somers
Sent: Monday, February 21, 2011 04:07
To: qt-interest at trolltech.com
Subject: Re: [Qt-interest] ç"复: QDomDocument parser xml

Op Ma, 21 februari, 2011 8:50 am, schreef pengliang(彭亮):
> Hi
>
>          Right, I wish an option too.

I don't. I think it is pointless API bloat.
What does the order of the attributes in an XML file matter? AFAIK, the
order is meaningless. Each attribute name is unique anyway. Of course, the
order of the _elements_ is important, but that order is preserved.

Anyway, I don't give a feature request on this much chance. The DOM API
has pretty much been declared depreciated anyway, in favour of the XML
stream classes.

André


_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest

This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.



More information about the Qt-interest-old mailing list