[xsd-users] CityGML deserialization - CityModel generation
Boris Kolpackov
boris at codesynthesis.com
Tue Feb 22 10:49:06 EST 2011
Hi Victor,
Adrian Victor Manoliu <victor.manoliu at yahoo.com> writes:
> The corresponding constructor I used is found in citygmlbase.hxx and
> has the prototype:
>
> ::std::auto_ptr< ::citygml::CityModelType >
> CityModel (::xml_schema::dom::auto_ptr< xercesc::DOMDocument >& d,
> ::xml_schema::flags f,
> const ::xml_schema::properties&)
This is not a constructor, it is a parsing function.
> const std::string fName = "waldbruecke_v1.0.0.gml";
> std::auto_ptr<CityModelType> iCity(CityModel(fName, flags.dont_validate));
> CityModelType::_GenericApplicationPropertyOfCityModel_const_iterator ci;
>
> Within the above mentioned constructor a map is created, which seems to
> hold the correspondencies between CityGML(XML) tags and the generated
> classes:
You are going into implementation details of XSD expecting things to be
a certain way without understanding very well how they works. I suggest
that instead you tell us what is not working in your code. For example,
do you not get any members in CityModelType instance?
Boris
More information about the xsd-users
mailing list