Carriage return in complex type
<xsd:element name="Work" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:attribute name="Option" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="add"/>
<xsd:enumeration value="change"/>
<xsd:enumeration value="delete"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="Name" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="Number" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
The above schema validates the following two options correctly
<Work Option="add" Name="Raul" Number="7" />
<Work Option="add" Name="Raul" Number="7"></Work>
But if there is space or carriage return (Enter key) between the start and end tags, the schema returns an error
(ie) for
<Work Option="add" Name="Raul" Number="7"> </Work>
(&)
<Work Option="add" Name="Raul" Number="7">
</Work>
I get the following error message
(The content of element type "Work" must match "EMPTY".)
I tried using <xsd:whitespace> but I think it can be used only for simple types...
Can somebody help me out with this?

