List Info

Thread: Re: FW: xmlReadFile with filename instead of URL?




Re: FW: xmlReadFile with filename instead of URL?
country flaguser name
Austria
2007-03-28 03:34:57
> -----Original Message-----
> From: Michael Day [mailto:mikedayyeslogic.com] 
> Sent: Wednesday, March 28, 2007 8:37 AM
> Cc: xmlgnome.org
> Subject: Re: FW: [xml] xmlReadFile with filename
instead of URL?
> 
> Hi Trappel,
> 
> > Since zlib is not compiled in in my Windows DLL I
thought I 
> might give 
> > this a quick try:
> > I can xmlReadFile("te%2st.xml", NULL,
0); without problems.
> 
> Can you try again with a filename containing %2F rather
than 
> %2s, as 2s is not valid hexadecimal code and won't be
unescaped.
> 
> Michael
> 

Aha. It does not work with %2F:

Dir
...
23.03.2007  12:45             1.015 te%2Fst.xml
...

xmlReadFile("te%2Fst.xml", NULL, 0);

-> failed to load external entity

best regards / mit freundlichen Grüßen,
Martin Trappel
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml

Re: FW: xmlReadFile with filename instead of URL?
country flaguser name
Australia
2007-03-28 03:58:52
Hi Trappel,

> Aha. It does not work with %2F:

Right, then all we need to do is look at the code in libxml2
within 
HAVE_ZLIB_H and LIBXML_ZLIB_ENABLED #ifdefs, and see what it
is doing 
that is not zlib-specific and should be taken outside of the
#ifdefs.

Michael

-- 
Print XML with Prince!
http://www.princexml.com

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )