[xml] xmlReadFile with filename instead of URL?



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]