[xsd-users] Re: Accessing elements in sequence of choices. Elements are complex types

Erik Sjölund erik.sjolund at gmail.com
Thu Mar 15 13:33:49 EDT 2012


If understand you correctly you, Codesynthesis XSD has probably
generated the function

   const P89_701_optional&  P89_701 () const;

(Take a look in the generated header file)

You could use it like this

if (object.P89_701().present()) {
  const P89_701 &var = object.P89_701().get();
}

cheers,
Erik Sjölund



More information about the xsd-users mailing list