|
Boost Users : |
Subject: Re: [Boost-users] [serialization] skipping top node "<boost_serialization signature...>"
From: Sebastian Mach (phresnel_at_[hidden])
Date: 2009-08-27 04:48:27
2009/8/27 Matthias Troyer <troyer_at_[hidden]>
>
> On Aug 26, 2009, at 7:15 PM, Sebastian Mach wrote:
>
> Passing boost::archive::no_header as the second parameter to
>> xml_oarchive() yields the following file for given test:
>>
>>
>> <picogen-qt-scene class_id="0" tracking_level="0" version="0">
>> <comment>hello world!</comment>
>> <fenum>two</fenum>
>> </picogen-qt-scene>
>>
>>
>> Unfortunately, "<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>"
>> is now missing, too.
>>
>
> Can't you just write this to the file yourself?
Of course, but it feels a little bit unclean.
The other reason I did not mention (sorry, really bad wording from my side)
is that xml in general does not feel dedicated enough to what I need, i.e.
it's too verbose in the end (I have lots of 3d/4d-vectors and 4x4 matrices,
complex recursive/cyclic/self referencing graphs, and so forth, and it
should be human readable and writable).
I think I will use a custom format that I already had in the past, and go
use spirit once again to build a kiss-conformat serialization framework.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net