Yes I understood,
I want to impliment this code but i am getting error. The error message is
{"Expected Schema root. Make sure that the root element is <schema> and the namespace is 'http://www.w3.org/2001/XMLSchema' for an XSD schema or 'urn:schemas-microsoft-com:xml-data' for an XDR schema. An error occurred at , (2, 2)." }
my xsd first two lines are
<?xml version="1.0"?>
<xs:schema xmlns="http://www.w3.org/2001/XMLSchema">
I am giving same namespace even i am getting error.
That particular tag is not null, it is the empty string; there is a subtle difference. I think you want instead:
-
<xs:element name="SourceSystem" minOccurs="1" nillable="false">
-
<xs:simpleType>
-
<xs:restriction base="xs:string">
-
<xs:minLength value="1"/>
-
</xs:restriction>
-
</xs:simpleType>
-
</xs:element>
-
--If it were null it would have an xsi:null attribute.