Qt-interest Archive, December 2006
Who feels like typing?
Message 1 in thread
I've been playing with a template for converting between QVariant and XML
representations. I don't know if it will be useful or not. It isn't fleshed
out. I've only implemented a few of the easier types. There is, however, a
reasonably sufficient framework to build upon. The hard things are going to
be stuff such as lists of lists, and binary data such as bit maps. For the
former, I will probably handle them recursively. For the latter, I am
thinking that uuencoding, or printing to a hex stream and putting it in a
CDATA section is the way to go. I want to format it reasonably well with
line breaks, so that it isn't too hard on the eyes.
I wrote it using Qt 4.2.snapshot. If you want to play with it, just fetch the
files and in the bz2 and change the proj/shared.pro to point to where you put
the root of the project. Also change setpaths if you want to use it.
http://baldur.globalsymmetry.com/open-source/org/sth/xmlVariant/xmlv/
I'm interested in any constructive feedback.
--
[ signature omitted ]