You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/06/12 19:08:48 UTC

DO NOT REPLY [Bug 20715] New: - Can't open XML files with URI reserved characters

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=20715>.
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=20715

Can't open XML files with URI reserved characters

           Summary: Can't open XML files with URI reserved characters
           Product: Xerces2-J
           Version: 2.4.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: SAX
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: mgood@edeploy.com


Using a SAXParser.parse function that takes an input file of type java.io.File
some files with valid Windows file names can't be opened.  In particular, if
there is a # in the file name like: File#2.xml.  

A related issue is the parse functions that take an input of type String which
is to contain a URI.  In that case, it accepts the # if it is escaped with a %
but it doesn't convert +'s to spaces as the java.net.URLEncoder class does.  (By
the way, a + is valid in a file name, so there's really no solution to this
second issue.  Just fix the first one (java.io.File) and I'll be happy)

As a result of these two things, there is no parse command that will accept all
valid MS Windows file names.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org