Re: [xml] URI question...

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Oct 02 2000 - 15:47:15 EDT


On Mon, Oct 02, 2000 at 02:38:05PM -0400, Marc Sanfacon wrote:
>
> Hi there,
> we are using libxml under Windows. We have encountered a problem
> with the URI on local files. Since under windows, there are drive letters
> to specify a file path, the uri looks like this:
>
> file://c:/tmp/MyFile.txt
>
> When giving this to 'xmlBuilrURI', it tries to look for the port
> number... Would it be all right to modify the code in uri.c so that when
> the scheme is 'file' and there is a ':' in the hostname, to keep it (the
> ':') with the server name instead of looking for the port number. Is it OK
> to say that a port number for the scheme file doesn't exists ?

  Hummm, I think taht the error is that you should use
           file:///c:/tmp/MyFile.txt
instead of file://c:/tmp/MyFile.txt

   file://hostname:1234/a/b/c

is a perfectly valid URL ... Recheck RFC 2396 but I'm 99% sure about this

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 02 2000 - 16:43:18 EDT