Hi,
I have a complexType like:
<xsd:complexType name="NightlyRate">
<xsd:complexContent>
<xsd:extension base="com:Money">
<xsd:attribute name="night" type="com:Number" use="required"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
Now, I want to add a child element to "NightlyRate", which itself is of complexType. I tried adding:
<xsd:element name="xxx" type"com:Money"/>
after the complexContent element, but it throws error that element is not expected, also part of the problem is type of this complex-element is the same as type of extension base. I am using JAXB. Is there any other way to achieve this?
Thanks!