[xsd-users] Sample code for GML creation?

Pavel Pohanka pavelpgt at gmail.com
Wed Jul 28 13:52:23 EDT 2010


Thank you very much Boris. It helps me a lot. I was able to write an example
XML file as ilustrated before.
There is only one thing, that bothers me.
Why the following code generates <gml:featureMember/> element instead of
<cityObjectMember/> element (which I want to get) within <CityModel>
element?

CityModelType city_model;
FeaturePropertyType city_object_member;
city_model.featureMember().push_back(city_object_member);
CityModel (ofs, city_model, map);

When I
use city_model._GenericApplicationPropertyOfCityModel().push_back(city_object_member);
it generates <_GenericApplicationPropertyOfCityModel
xsi:type="gml:FeaturePropertyType">.

I can't figure it out, where could be mistake. Within building element is
everything all right.
Thank you for your great help.

Pavel


More information about the xsd-users mailing list