I want to define an element in an XML schema that will contain an empty string or some specific template, for example:
<Code/> <Code></Code> <Code> </Code> <Code>11111</Code> <Code>111111</Code> - INVALID <Code>AAAAA</Code> - INVALID
How can I change an existing restriction?
<xs:element name="Code"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="[0-9]{5}" /> </xs:restriction> </xs:simpleType> </xs:element>
source share