[xsd-users] Binary serialization

Balasubramanyam, Shivakumar sbalasub at qualcomm.com
Mon Jan 28 02:08:20 EST 2008


Boris,

I would be interested in the Boost serialization examples.

Thanks,
Shiva

-----Original Message-----
From: xsd-users-bounces at codesynthesis.com
[mailto:xsd-users-bounces at codesynthesis.com] On Behalf Of Boris
Kolpackov
Sent: Sunday, January 27, 2008 10:24 PM
To: jeffery at envisagereality.com
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] Binary serialization

Hi Jeffrey,

jeffery at envisagereality.com <jeffery at envisagereality.com> writes:

> my current project involve in loading huge xml files. Is there any
> support for serialisation to binary, or something similar to reduce
> the loading time of the files?

Yes, the C++/Tree mapping supports binary serialization (CDR and XDR
are supported out of the box, custom formats can be easily added).
You are also correct in assuming that the parsing time will be much
better (we have observed an order of magnitude improvement).

The 'binary' example, which can be found in the examples/cxx/tree/
directory of XSD distribution shows how to save the object model to
and load it from ACE CDR streams.

The next version of XSD (due in a week or two) adds examples for
XDR and a custom format (using Boost serialization library as an
example). These examples should also work with 3.0.0 so I can
send them to you if you would like.

Boris





More information about the xsd-users mailing list