From: Marc Sanfacon (sanm@copernic.com)
Date: Mon Oct 02 2000 - 16:38:42 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
is a perfectly valid URL ... Recheck RFC 2396 but I'm 99% sure about this
Daniel
------------------
I tried to parse the following url: file:///c:/tmp/MyFile.txt. I
got an error. It is unable to parse it.
The error is given in the code: uri.c, in function: xmlParseURIAuthority
these lines:
if (!IS_REG_NAME(cur)) {
return(5);
}
Marc.
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Mon Oct 02 2000 - 16:43:18 EDT