Help with XSD validation failures

Joined
Oct 5, 2010
Messages
1
Reaction score
0
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">
<xs:pattern 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">
<xs:pattern 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:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,742
Latest member
AshliMayer

Latest Threads

Top