Net PerfectDev

Net PerfectDev

  • 2.1k
  • 19
  • 2k

valid pattern for xsd restriction contain type float with word "exist"

Jun 13 2022 10:02 AM


i want to validate by xsd an attribute can contain a float type or a word "exist". after search in the net i found this solution(  but it does not worked when i add this pattern:

<xs:restriction base="xs:Double">
      <xs:pattern value="[0-9]| 'exist'"/>

how to fix that ?