Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Problem with xsd and xml validation using JAXB (InvalidRegex:Pattern value '([a-zA-Z0-9\_\.\*\%\-]){1,28}' is not a valid regular expression. The reported error was: 'This expression is not supported in the current option setting.')
Problem with xsd and xml validation using JAXB [message #809163] Tue, 28 February 2012 09:53 Go to previous message
Manoj Kumar is currently offline Manoj Kumar
Messages: 1
Registered: February 2012
Junior Member
Hi,
I am validating the xml file with xsd. I am getting a problem when there is a regular expression which contains the escape characters
For example
my xsd is like :
<xs:simpleType name="DestinationStringLimitedType">
<xs:restriction base="xs:string">
<xs:pattern value="([a-zA-Z0-9\_\.\*\%\-]){1,28}"/>
<xs:whiteSpace value="collapse"/>
</xs:restriction>
</xs:simpleType>

when i am trying to validate using jaxb i'm getting the error as

Pattern value '([a-zA-Z0-9\_\.\*\%\-]){1,28}' is not a valid regular expression. The reported error was: 'This expression is not supported in the current option setting.'

And when i remove the escape characters it is not giving any errors that is if the xsd is <xs:pattern value="([a-zA-Z0-9_.*%-]){1,28}"/> .

1) How to make JAXB work with this regular expression(with escape characters)?
2) How to configure Xerces to make it parse this regular expression?


Can any one help me with the above problem ?
 
Read Message
Read Message
Previous Topic:xpath error
Next Topic:Include several XSD files
Goto Forum:
  


Current Time: Thu May 23 05:09:49 EDT 2013

Powered by FUDForum. Page generated in 0.02689 seconds