我正在使用JAXB来解析我的xml架构(xsd)。我有一个complexType如下:
<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类具有List类型的DateList对象而不是List类型。有没有人知道它是否是JAXB compliler中的一个错误,如果是,那么我的情况是否有解决方法?
谢谢!