[xsd-users] Binary serialization

Boris Kolpackov boris at codesynthesis.com
Mon Jan 28 01:24:09 EST 2008


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