Re: [xml] xmlReadFile with filename instead of URL?

On Tue, Mar 27, 2007 at 08:24:11PM +1000, Michael Day wrote:

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?

 Works just fine here, if the "foo%2Fbar.xml" file is present. If it is
absent, then the unescaping is tested. I don't understand why that doesn't
work for you.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]