[xsd-users] anyType problem
Boris Kolpackov
boris at codesynthesis.com
Fri Sep 21 10:16:42 EDT 2018
Cherednychek, Nikita <ncherednychek at initse.com> writes:
> <xsd:complexType name="VehicleMonitoringDelivery_t">
> <xsd:sequence>
> <xsd:element name="ResponseTimestamp" type="xsd:dateTime" minOccurs="0"/>
> <xsd:element name="SubscriberRef" type="xsd:string" minOccurs="0"/>
> <xsd:element name="SubscriptionRef" type="xsd:string" minOccurs="0"/>
> <xsd:element name="Status" type="xsd:boolean" minOccurs="0"/>
> <xsd:element name="VehicleActivity" type="VehicleActivity_t" minOccurs="0" maxOccurs="unbounded"/>
> <xsd:element name="Extensions" type="xsd:anyType" minOccurs="0"/>
> </xsd:sequence>
> <xsd:attribute name="version" type="xsd:NMTOKEN" default="2.0"/>
> </xsd:complexType>
>
> [...]
>
> Now I wont to fill the "Extensions" with some, let say, string.
To quote the C++/Tree Mapping Manual:
"anyType allows any attributes and any content in any order. In the
C++/Tree mapping this content can be represented as a DOM fragment."
See Section 2.5.2, "Mapping for anyType" for details:
https://codesynthesis.com/projects/xsd/documentation/cxx/tree/manual/#2.5.2
More information about the xsd-users
mailing list