[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-users
Subject:    Xerces SAX Validation Information
From:       <karuna.kosaraju () wipro ! com>
Date:       2008-01-21 12:37:36
Message-ID: 21227C6FF0A66E459AC07C4DC1CE7F7603DB1F12 () BLR-EC-MBX01 ! wipro ! com
[Download RAW message or body]


Hi,

We are using Xerces 2.6 SAX for schema validation. One of our schemas has the \
restriction specified on string as below

<xsd:restriction id="stringPattern" base="xsd:string">
             <xsd:pattern value="[a-c][A-Z]*"/>
</xsd:restriction>

During validation , SAX displays following message incase of error.

Error at file /home/sirisha/xerces-c-src_2_6_0/bin/schema/NECB.xml, line 25, char 87
  Message: Datatype error: Type:InvalidDatatypeValueException, Message:Value '001' \
does not match regular expression facet '[a-c][A-Z]*'.

Can i get the id of xsd:restriction also in the SAX error message? Are there any \
additional APIs to be used? Any pointers would be appreciated.

Thanks in advance,
Karuna

The information contained in this electronic message and any attachments to this \
message are intended for the exclusive use of the addressee(s) and may contain \
proprietary, confidential or privileged information. If you are not the intended \
recipient, you should not disseminate, distribute or copy this e-mail. Please notify \
the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check \
this email and any attachments for the presence of viruses. The company accepts no \
liability for any damage caused by any virus transmitted by this email.

www.wipro.com



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic