Re: [xml] URI question...

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Mon Oct 02 2000 - 17:16:30 EDT


On Mon, Oct 02, 2000 at 04:38:42PM -0400, Marc Sanfacon wrote:
>
> 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);
> }

  yes that's a bug, the enclosed patch fixes it:

~/XML -> ./testURI file:///c:/tmp/MyFile.txt
file:///c%3A/tmp/MyFile.txt
~/XML ->

  Note that the URI code escapes the : when generating the string. I don't
think this is stricly needed but it's better anyway,

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 - 17:43:16 EDT