[xsd-users] Missing a parsing function
Babinskas, Albert
albert.babinskas at imagingsciences.com
Thu Jan 22 07:31:43 EST 2015
HI,
I Have this Schema:
<xs:complexType name="reference_t">
<xs:complexContent>
<xs:extension base="tns:referenceable_t">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="referenceable_t">
<xs:sequence>
<xs:element name="createdDate" type="xs:dateTime" minOccurs="0"/>
<xs:element name="modifiedDate" type="xs:dateTime" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:string"/>
<xs:attribute name="href" type="xs:string"/>
<xs:attribute name="representation" type="tns:representationType_t"/>
</xs:complexType>
I don't have <xs:element> type for reference_t
I can create reference_t by writing:
reference_t ref;
ref.id() = "someID";
ref.href() = "someHref";
But my problem is I don't have a function to serialize reference_t.
I don't have this:
::reference(ref)
These are the settings I am compiling my schema with:
xsd.exe cxx-tree --char-type char --char-encoding utf8 --generate-serialization --generate-ostream --generate-default-ctor --generate-wildcard --generate-polymorphic --namespace-map http://api.ditcdev.com/schema/datawarehouse/v1.3.0-130=schema::datawarehouse schema1.xsd
What setting I need to set to compile my Schema, to get serialization function for reference_t?
-Albert
More information about the xsd-users
mailing list