Index: uri.c =================================================================== --- uri.c (revision 3575) +++ uri.c (working copy) @@ -2433,7 +2433,7 @@ } if (uri->scheme == NULL) { - ret = xmlStrdup((const xmlChar *) path); + ret = xmlStrdup((const xmlChar *) uri->path); } else { ret = xmlSaveUri(uri); }