[xml] xmlReadFile with filename instead of URL?
- From: Michael Day <mikeday yeslogic com>
- To: xml gnome org
- Subject: [xml] xmlReadFile with filename instead of URL?
- Date: Tue, 27 Mar 2007 20:24:11 +1000
Hi,
The xmlReadFile() and htmlReadFile() functions take a URL. This appears
to make it very difficult to load a local file that contains percentages
in the name, as they will be unescaped:
xmlReadFile("foo%2Fbar.xml") => tries to load "foo/bar.xml".
Is there some way to specify that the argument to xmlReadFile() is
actually just a filename?
Or is it necessary to convert every relative filename into an absolute
file: URL to guarantee correct processing? (The downside of this is that
error messages will be reported using the long clunky URL rather than
the original short filename).
Best regards,
Michael
--
Print XML with Prince!
http://www.princexml.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]