KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When I try to validate an XML file against an XSD in java ( see this example ) there are some incompatibilities between the regular expressions given in the XSD file and the regular expressions in java. If there is an regular expression like "[ab-]" in the XSD (meaning any of the characters "a", "b" or "-", java complains about a syntax error in the expression. This is a known bug since 28-MAR-2005, see Sun bug database . What can I do to work around this bug? Up to now I try to "correct" the XSD file by replacing the "[ab-]" by "[ab\-]" , but sometimes this is not an option. If you have problems with this bug, too, please vote for it at the Sun bug database !
Tags (comma-separated)
Save Edits
Cancel