[xsd-users] create object model with default values from schema?
Boris Kolpackov
boris at codesynthesis.com
Thu Apr 7 13:24:39 EDT 2011
Hi Steffen,
Steffen Koepf <S.Koepf at ergo-elektronik.de> writes:
> At the moment I parse a xml file with default values,
> change all elements with the values I want to save
> and then write this to a new xml file.
>
> Is it now possible to get a
> auto_ptr<config> configptr = ...
> without having a xml file first?
Yes, you can do:
auto_ptr<config> configptr = new config;
And all the attributes with default values will have their default
values.
Boris
More information about the xsd-users
mailing list