Re: [xml] Wine - libxml issue



On Thu, May 01, 2008 at 06:46:16AM +1000, Alistair Leslie-Hughes wrote:
Hi,

I've developing MSXML3 support for the Wine project and have come across
a problem that I don't know a clean solution for.

 Here is a bug report for reference.
 http://bugs.winehq.org/show_bug.cgi?id=11325

 The issue,
   When wpkg creates their style-sheet they include paths that include
 C:/home/alh/wpkg/tools/rooms1.xml, which under windows are fine, but
 under Linux they don't exist since we use native libxml2.
Is there a way in libxml2 to specific where the missing files?
Could a callback be added to support this.?

  Yes you could register your own set of I/O file handlers see
   http://xmlsoft.org/html/libxml-xmlIO.html#xmlRegisterInputCallbacks
and
   http://xmlsoft.org/html/libxml-xmlIO.html#xmlRegisterOutputCallbacks

  just a couple of wrapper functions detecting the fact it's a Windows
file path, and associated open, read/write, close functions hould do the
trick.

  There is an example for registering specific input callbacks
    http://xmlsoft.org/examples/index.html#io1.c

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]