You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Brad O'Hearne <ca...@megapathdsl.net> on 2001/02/19 21:38:04 UTC
Windows Paths
Hello all...
I am trying to figure out what the proper format is to specify an absolute
path on a Windows platform as the URI for the parse method. If I have an
XMLReader called parser, the following:
parser.parse("c:\test\data.xml");
will not work. I am finding this same issue a bit of an problem when trying
to resolve the dtd in the EntityResolver as well, since the resolveEntity
method is receiving a systemId that includes path info, as in
file:///test/dtd/data.dtd. Specifically, on a Windows platform, how do you
include the drive letter in the URI?
Thanks in advance.
Brad
RE: Windows Paths
Posted by Brad O'Hearne <ca...@megapathdsl.net>.
I must still be missing something. Neither
parser.parse("c:/test/data.xml");
or
parser.parse("file://c:/test/data.xml");
are working. They are both causing a NullPointerException to be thrown,
same as the "c:\test\data.xml" string below.
Any other ideas, or have I missed something?
Brad
-----Original Message-----
From: Milind Gadre [mailto:milind@ecplatforms.com]
Sent: Monday, February 19, 2001 12:56 PM
To: xerces-j-user@xml.apache.org
Subject: Re: Windows Paths
Brad, use forward slashes ... c:/a/b/c
Regards...
Milind Gadre
ecPlatforms, Inc
901 Mariner's Island Blvd, Suite 565
San Mateo, CA 94404
C: 510-919-0596
F: 815-352-0779
milind@ecplatforms.com
>
> parser.parse("c:\test\data.xml");
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: Windows Paths
Posted by Milind Gadre <mi...@ecplatforms.com>.
Brad, use forward slashes ... c:/a/b/c
Regards...
Milind Gadre
ecPlatforms, Inc
901 Mariner's Island Blvd, Suite 565
San Mateo, CA 94404
C: 510-919-0596
F: 815-352-0779
milind@ecplatforms.com
>
> parser.parse("c:\test\data.xml");
>