[xsd-users] Just want to create an instance of an element and populate sub-elements

Attila atteeela at gmail.com
Sat Jun 20 17:10:29 EDT 2009


Hi,

Say I have a Person object which is composed of a choice between the
following 2 string elements: RealName or Nickname.

I would like to instantiate an empty Person object and set the RealName or
Nickname and then serialize it to a std::string.
How can I accomplish this?

Thank you

-- 
Attila
Software Developer
atteeela at gmail.com



More information about the xsd-users mailing list