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 2002/09/20 11:14:10 UTC
DO NOT REPLY [Bug 12845] New: -
MalformedURLException if DTD in directory with a space in the path
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: xerces-j-dev@xml.apache.org
ReportedBy: derekwright@ecebs.com
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org