Just curious, why do you even care about the order?
As far as I remember, QDomElement stores it's attributes in an unordered hash and it surely does not care about the order of the attributes. Since QDom* classes in general have no virtual methods, you might have to implement the recursive writing all by yourself.
Bookmarks