[xsd-users] How to laod a XSD generated class

Boris Kolpackov boris at codesynthesis.com
Tue Apr 16 08:25:19 EDT 2013


Hi Adrian,

Adrian Stern <adrian.stern at screenfood.com> writes:

> The root element is called special-smil. From this a class named 
> special_smil was generated. 
>
> [...]
>
> auto_ptr<special_smil> c = special_smil ("c.xml");

If the root type and root element have the same name, then XSD
appends an underscore to the parsing/serialization functions (it
is a pain in C++ to have both a type and a function with the same
name).

So try something like this:

auto_ptr<special_smil> c = special_smil_ ("c.xml");

Boris



More information about the xsd-users mailing list