2009-06-10 1 views
-1

내 xml 스키마 (xsd)를 구문 분석하는 데 JAXB를 사용하고 있습니다.Xsd : list -> date issue

<xsd:complexType name="PromotionalInfo"> 
    <xsd:attribute name="promotionName" type="xsd:string" use="required"/> 
    <xsd:attribute name="blackOutDates" type="DateList"/> 
    <xsd:attribute name="amount" type="xsd:float" use="required"/> 
    <xsd:attribute name="endDate" type="com:Date"/> 
    <xsd:attribute name="startDate" type="com:Date"/> 
    <xsd:attribute name="purchaseEndDate" type="com:Date"/> 
    <xsd:attribute name="purchaseStartDate" type="com:Date"/> 
    <xsd:attribute name="promoType" type="xsd:string" use="required"/> 
    <xsd:attribute name="shortMarketingText" type="FiftyLimString" use="required"/> 
    <xsd:attribute name="numNightsRequired" type="xsd:int"/> 
    <xsd:attribute name="numNightsFree" type="xsd:int"/> 
    <xsd:attribute name="termsAndConditions" type="ThousandLimString"/> 
    <xsd:attribute name="customerFulfillmentRequirements" type="ThousandLimString"/> 
</xsd:complexType> 

<xsd:simpleType name="DateList" id="DateList"> 
    <xsd:list itemType="com:Date"/> 
</xsd:simpleType> 

이제 문제는, JAXB가 생성되어 내 promotionalInfo 클래스 목록 유형 대신 목록 유형의 DateList 개체가 다음과 같이 나는 복합 타입이있다. JAXB 컴파일러에서 버그인지 여부를 아는 사람이 있습니까? 그렇다면 내 경우에 해결 방법이 있습니까?

감사합니다.

답변

0

bindingSchema.xsd에서 xs : list에 대한 우리의 유형은 xsd : date 유형이 될 수 없다는 것을 발견했습니다.