Hi,
I am a beginner to regex and I need some help in understanding this errors on XSD-XML validation.
1. I see the error
Reason: cvc-pattern-valid: Value '1109' is not facet-valid with respect to pattern '^[0-9]+$' for type 'OrderIpType'.
Corresponding XSD entry is
<xs:simpleType name="OrderIpType">
<xs:restriction base="xs:string">
<xsattern value="^[0-9]+$"/>
</xs:restriction>
Not sure why '1109' is failing for this regex.
2. Reason: cvc-pattern-valid: Value 'V3_2__1_C1_532_71988d4af539d94c6722ebb52603890eZ6rhCrHjSyT5hJA4IgnKIQ_24:V1_2__1_S1_532_3a171c8416e295e98d3124b1ca0d3a40yzu6TV1EESwf..BT_88S8A--_24' is not facet-valid with respect to pattern '^.+$' for type 'DiskIDType'.
<xs:simpleType name="DiskIDType">
<xs:restriction base="xs:string">
<xsattern value="^.+$"/>
Shouldn't '^.+$' allow all characters(except newline)? Why is this failing?
These errors are also followed my msgs of type:
Schemas validity error : Element 'OrderIp': '1509' is not a valid value of the atomic type 'OrderIpType'.
pls help..
I am a beginner to regex and I need some help in understanding this errors on XSD-XML validation.
1. I see the error
Reason: cvc-pattern-valid: Value '1109' is not facet-valid with respect to pattern '^[0-9]+$' for type 'OrderIpType'.
Corresponding XSD entry is
<xs:simpleType name="OrderIpType">
<xs:restriction base="xs:string">
<xsattern value="^[0-9]+$"/>
</xs:restriction>
Not sure why '1109' is failing for this regex.
2. Reason: cvc-pattern-valid: Value 'V3_2__1_C1_532_71988d4af539d94c6722ebb52603890eZ6rhCrHjSyT5hJA4IgnKIQ_24:V1_2__1_S1_532_3a171c8416e295e98d3124b1ca0d3a40yzu6TV1EESwf..BT_88S8A--_24' is not facet-valid with respect to pattern '^.+$' for type 'DiskIDType'.
<xs:simpleType name="DiskIDType">
<xs:restriction base="xs:string">
<xsattern value="^.+$"/>
Shouldn't '^.+$' allow all characters(except newline)? Why is this failing?
These errors are also followed my msgs of type:
Schemas validity error : Element 'OrderIp': '1509' is not a valid value of the atomic type 'OrderIpType'.
pls help..
Last edited: