[Interest] Writing Canonical XML in Qt5

Rainer Wiesenfarth Rainer_Wiesenfarth at trimble.com
Wed Oct 15 06:27:23 CEST 2014


Am 15.10.2014 02:26, schrieb Matt.Bolger at csiro.au:
> Any suggestions for the best cross platform way to write canonical xml
> files under Qt5 (http://en.wikipedia.org/wiki/Canonical_XML). The
> complete randomness of QHash makes any sort of diff tool comparison
> impossible [...]

Is QMap an alternative for your QHash? Of course, you will lose 
performance on insertion and lookup.

An other approach might be to get the QHash::keys(), sort them and use 
the result to iterate over the QHash when writing the XML file.

Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth

-- 
Software Engineer | Trimble Imaging Division
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/imaging/ | http://www.inpho.de/

Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4255 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20141015/160b67e6/attachment.bin>


More information about the Interest mailing list