[xsde-users] Program crash: How to use XML-Schema built-in string type

Adinath Shetye adi4info at gmail.com
Sun May 3 10:51:31 EDT 2015

Thanks Boris,
The exception was due to assigning UUID length not exactly equal to 36.
 <xs:simpleType name="UUID">
                <xs:restriction base="xs:string">
                        <xs:length value="36"/>
        std::string Str("adasddsaadasddsa");------This string should have
been 36 chars long


On Sun, May 3, 2015 at 3:26 PM, Boris Kolpackov <boris at codesynthesis.com>

> Hi,
> Adinath Shetye <adi4info at gmail.com> writes:
> > *Program Crash:*
> > When I try UObj.assign(Str); the program compiles but I get core dump:
> > terminate called after throwing an instance of
> > 'xsde::cxx::serializer::schema'
> >   what():  schema error
> I suggest that you do the following:
> 1. Read the documentation, specifically on the schema exception.
> 2. Based on what you have learned from the step above, catch and
>    print the information from this exception so that it allows
>    you to understand where the problem it.
> Boris

More information about the xsde-users mailing list