[xsde-users] copy constructors & expat error output

Boris Kolpackov boris at codesynthesis.com
Wed Apr 27 10:41:57 EDT 2011


Hi,

dv <dv7777 at gmail.com> writes:

> 1. Is it possible to have XSD/e generate copy constructors for the  
> complex types? The next best thing I've found is the --generate-clone  
> switch.

Copy constructors are provided (by the C++ compiler) for fixed-length
types. Variable-length types are always dynamically allocated so clone()
is the preferred mechanism to use with such types.

> 2. When an XML file violates the XSD schema, the parser reports an  
> error. However, it reports no details, only that there was a schema 
> error.

You get the position and the error description. If you are using C++
exceptions, see, the 'hello' example for how to access this information.
Otherwise, see the 'minimal' example.

Boris



More information about the xsde-users mailing list