[xsd-users] cxx-parser: Not all attributes in the XML namespace are typemapped.

Boris Kolpackov boris at codesynthesis.com
Sun Dec 2 06:47:14 EST 2007


Hi Jeroen,

Jeroen N. Witmond [Bahco] <jnw at xs4all.nl> writes:

> Attributes lang and space are (anonymous) simpleTypes, where base
> and id are xs:anyUri resp. xs:ID.
>
> Is this expected behavior of xsd cxx-parser?

Yes, type maps are mapping types, not attributes or elements. If
you want the base and id attributes to be represented by your own
C++ types, then you will need to re-map xs:anyUri and xs:ID (and
by doing this you will also make other attributes/elements that
are of these built-in types to use your custom C++ types).

Boris




More information about the xsd-users mailing list