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

MalformedURLException if DTD in directory with a space in the path

           Summary: MalformedURLException if DTD in directory with a space
                    in the path
           Product: Xerces2-J
           Version: 2.1.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DTD
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If a DTD is in the same system directory as the XML file, the DTD can normally
be referred to as follows:

<!DOCTYPE Application SYSTEM "card.dtd">

This works on Windows NT4 with Xerces-J 2.1.0, as long as the directory path to
the XML file and DTD does not contain any spaces. However, if the directory path
contains any spaces in the directory names, a MalformedURLException is thrown
when the document is parsed.  Parsing was performed using the JAXP interface.

The problem can only be avoided by referring to the DTD as a URL with a file
protocol:

<!DOCTYPE Application SYSTEM "file:card.dtd">

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to