[xsd-users] Serialization code doesn't seem to be generated

Boris Kolpackov boris at codesynthesis.com
Thu Mar 14 09:36:03 EDT 2013


Hi Stephane,

Stephane Rolland <stephane.rolland.email at gmail.com> writes:

> when I generate the code with
> xsd cxx-tree --generate-serialization --hxx-suffix .h --cxx-suffix .cpp
>  ../xsd/*.xsd
> 
> the code for serialization doesn't seem to be here.
> 
> [...]
>
> void
> operator<< (::xercesc::DOMElement&, const Sentence&);
> 
> void
> operator<< (::xercesc::DOMElement&, const SentencesView&);

These are the serialization operators. You don't see any serialization
functions because your schema doesn't define any global elements (which
are treated as possible document roots). So you may want to try adding
a global element.

Boris



More information about the xsd-users mailing list