[xsd-users] Custom Serializer
Boris Kolpackov
boris at codesynthesis.com
Fri Aug 10 02:55:04 EDT 2007
Hi Shiva,
Balasubramanyam, Shivakumar <sbalasub at qualcomm.com> writes:
> I understand that XSD provides XML, ACE and XDR serialization.
>
> Does it also support providing our custom serializable library?
Yes, you can add support for your own representation streams by
implementing insertion/extraction for fundamental types and then
using the --generate-insertion and --generate-extraction options
to generate insertion operators and extraction constructors for
your streams.
For an example on how to implement insertion/extraction for
fundamental types, see the following files in libxsd/xsd/cxx/tree:
ace-cdr-stream-insertion.hxx
ace-cdr-stream-extraction.hxx
xdr-stream-insertion.hxx
xdr-stream-extraction.hxx
For more information on the --generate-insertion and
--generate-extraction options, see the XSD Compiler Command
Line Manual:
http://www.codesynthesis.com/projects/xsd/documentation/xsd.xhtml
Let me know if you have any problems.
Boris
More information about the xsd-users
mailing list