Roshan Mule

Roshan Mule

  • NA
  • 274
  • 445

XSD validation.

May 7 2020 1:29 AM
What is the best way to write mandatory field validation in XSD?
i am trying below code but it is not working.
 
<xs:element name="DOB">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="DOB" type="xs:string" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
 

Answers (1)