[Qt-interest] QDomDocument parser xml
Arnold Krille
arnold at arnoldarts.de
Mon Feb 21 12:22:39 CET 2011
On Monday 21 February 2011 03:01:16 pengliang(彭亮) wrote:
> Anybody can tell me why:
> It’s strangely that I set attributes and save xml, some attributes
> have been moved to other position.
For xml the order in which attributes are stored/loaded is not important.
It doesn't matter if the text is red and font-family is serif or if font-
family is serif and the text is read. (As an example.)
If you desperately need order in these properties, you have to add them as
child-elements and not use attributes for this.
But this is not Qt-specific, thats xml for you.
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110221/40c2b4d8/attachment.bin
More information about the Qt-interest-old
mailing list