URI wrong for fully qualified path on Windows
The following code:
xmlDocPtr doc = xmlReadFile("C:\\does_not_exist.xml", NULL, 0);
printf("%s\n", xmlGetLastError()->str1);
will output: file:/C:/does_not_exist.xml
. While I expected to see file:// or file:/// even, as file:/ isn't valid.
Linux behaves correctly with fully qualified paths.
Similarly, even if the load succeeds, the URI in doc->URL
is wrong.
Edited by Niels Dossche