[xsd-users] AnyType and the extraction of contents

Boris Kolpackov boris at codesynthesis.com
Tue May 12 07:16:19 EDT 2020


Daniel Kåsa <daniel.kaasa at gmail.com> writes:

> Snip from the generated "observation.xsd" OGC Observation & Measurements
> schema:
> 
> ---------------------------- snip ------------------------------
> // result
> //
> {
>   ::std::unique_ptr< ::xsd::cxx::tree::type > tmp (
>     ::xsd::cxx::tree::type_factory_map_instance< 0, char > ().create (
>       "result",
>       "http://www.opengis.net/om/2.0",
>       &::xsd::cxx::tree::factory_impl< result_type >,
>       true, true, i, n, f, this));

This suggests that anyType is treated as a polymorphic type. What is the
semantics of this `result` element? Is it part of a substitution group?
If so, perhaps what you are getting in your object model if not anyType
but an instance of one of its derived types? That would explain why you
are not seeing any DOM content.



More information about the xsd-users mailing list