Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Help with XSD validation failures

Reply
Thread Tools

Help with XSD validation failures

 
 
RockSter RockSter is offline
Junior Member
Join Date: Oct 2010
Posts: 1
 
      10-05-2010
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_71988d4af539d94c6722ebb52603890eZ6 rhCrHjSyT5hJA4IgnKIQ_24:V1_2__1_S1_532_3a171c8416e 295e98d3124b1ca0d3a40yzu6TV1EESwf..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 by RockSter; 10-06-2010 at 05:53 AM..
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation of XSD (XML Schema) against XSD Rushi XML 1 12-09-2005 08:12 AM
XML + XSD: Is it possible to get all errors against the XSD? Markus Java 1 11-22-2005 02:53 PM
XSD help please -- XSDObjectGen, XSD.exe etc,,, Burak XML 0 07-01-2004 04:22 PM
referencing another XSD file within an XSD file JavaDeveloper@nowhere.com XML 1 01-14-2004 05:22 PM
XSD document for XSD defintion Rick Razzano XML 1 09-26-2003 12:41 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57