DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10633>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10633 URI WhiteSpace Handling in xerces 2.02 Summary: URI WhiteSpace Handling in xerces 2.02 Product: Xerces2-J Version: 2.0.2 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Critical Priority: Other Component: XNI AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] The new xerces parser 2.02 throws an error when I have a whitespace in my URI e.g file:/C:/Program Files/schema1.xsd . It only works with URIs without a whitespace. After stepping through the xerces parser, I noticed that the xerces class, com.apache.xerces.util.URI no more allows a white space when verifying for unReserved characters. This worked in xerces 2.01. In 2.01, the global variable, MARK_CHARACTERS of the URI class is assigned the value "-_.!~*'() " . But in 2.02, the , MARK_CHARACTERS is assigned the value "-_.!~*'()" . As you can see, the space after ')' was taken out. This variable was used by the method isUnreservedCharacter(uri). It returns a false if the uri contains a false and then a MalformedURIException is thrown. When I tried replacing the whitespace with '%20', the instance of com.apache.xerces.util.URI was successfully created but an error was thrown when the parser tried to create an instance of the file with '%20' in the URI. Is this a bug in xerces 2.02 or is there a special whitespace encoding I need to do to the URI to make the parser find the schema1.xsd file? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
