Hello,
I have the following XML_schema:
<xsd:complexType
name="timePoint" abstract="true">
<xsd:attribute name="closed" use="required" type="xsd:boolean"/>
</xsd:complexType>
<xsd:complexType name="integerTimePoint">
<xsd:complexContent>
<xsd:extension base="timePoint">
<xsd:sequence minOccurs="1" maxOccurs="1">
<xsd:element name="value" type="xsd:integer"
minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
This way the integerTimePoint is represented as:
<tagName closed="true/false" xsi:type="integerTimePoint">
<value>
5
</value>
</tagName>
But I would like the integerTimePoint to be represented as:
<tagName closed="true/false" xsi:type="integerTimePoint">
5
</tagName>
With the restriction that the actual content between the tags 'tagName'
is a xsd:integer.
Can anyone help me out here please,
thanks,
Koen