Im trying to create an element "refresh" which contains both a "time" & "timeType" element. If these elements are not included in .xml they will be replaced by the default values. However Im not sure what to place in ********* because I cant place <xs:sequence> because it will throw an error if I skip either of the "time" or "timeType" elements. Sorry i'm new to schemas how would I go about getting it to work?
Thank you all for your time
.........
<xs:element name="time" type="xs
ositiveInteger" default="1"/>
<xs:element name="timeType" default="weeks">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="days"/>
<xs:enumeration value="weeks"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="refresh">
<xs:complexType>
************
<xs:element ref="time"/>
<xs:element ref="timeType"/>
*************
</xs:complexType>
</xs:element>