W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2004

Error while generating source code thru schema using castor JDO

From: Suresh Paulraj <SureshP@hexaware.com>
Date: Tue, 28 Sep 2004 09:35:12 +0530
Message-ID: <372DD7320F873B43929D49BFF86F950B07D692A9@mail3.hexaware.com>
To: <xmlschema-dev@w3.org>

Hello,

Am generating Java source code through the schema below using Castor JDO.

In this file i have commented certain lines. They are giving me a duplicate declaration error when i try to 
run the source generator over it. The following is an e.g. of that

<xs:element name="FlightDetailsQuerySegment">
	<xs:complexType>
		<xs:sequence>
			<!-- <xs:group ref="ActionFlightCarrier"/> -->
			<!-- <xs:group ref="ActionFlightNumber"/> -->
			<xs:element name="OutboundLocalDateorTimeofDeparture" type="OutboundLocalDateorTimeofDeparture"/>
			<xs:element name="OutboundAirportofDeparture" type="OutboundAirportofDeparture"/>
			<xs:element name="OutboundAirportorCityofArrival" type="OutboundAirportofDeparture"/>
			<xs:element name="OutboundFlightContinuationIndicator" type="ActionFlightContinuationIndicator" minOccurs="0" maxOccurs="0"/>
			<xs:group ref="ActionFlightCarrier" minOccurs="0"/>
			<xs:group ref="ActionFlightNumber" minOccurs="0"/>
			<xs:element name="InboundScheduledLocalDateorTimeofDepartureSTD" type="OutboundLocalDateorTimeofDeparture" minOccurs="0"/>
			<xs:element name="InboundScheduledLocalDateorTimeofArrivalSTA" type="OutboundLocalDateorTimeofDeparture" minOccurs="0"/>
			<xs:element name="InboundAirportofDeparture" type="OutboundAirportofDeparture" minOccurs="0"/>
			<xs:element name="InboundAirportorCityofArrival" type="OutboundAirportofDeparture" minOccurs="0"/>
			<xs:element name="TerminalofArrival" type="TerminalofArrival" minOccurs="0"/>
			<xs:element name="InboundTypeofServiceIndicator" type="InboundTypeofServiceIndicator" minOccurs="0"/>
			<xs:group ref="ProductDateTime" minOccurs="0" maxOccurs="2"/>
		</xs:sequence>
	</xs:complexType>
</xs:element>

Is it wrong to define this way to generate source code ?. Please let me know. Thanks in advance for your reply.

Regards,
Suresh

DISCLAIMER:
Information contained and transmitted by this E-MAIL is proprietary to
Hexaware Technologies and is intended for use only by the individual or
entity to which it is addressed and may contain information that is
privileged, confidential or exempt from disclosure under applicable law.
If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible
for delivering the information to the named recipient, you are notified
that any use, distribution, transmission, printing, copying or
dissemination of this information in any way or in any manner is
strictly prohibited. If you have received this communication in error,
please delete this mail & notify us immediately at
adminchn@hexaware.com.
Received on Tuesday, 28 September 2004 03:59:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:24 UTC