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



On Tue, Mar 27, 2007 at 08:24:11PM +1000, Michael Day wrote:
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?

 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.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/



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