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

Reply via email to