Re: msxml3: Added xml Input Callbacks to support loading files from aWine windows drive (try 2)
"Alistair Leslie-Hughes" <leslie_alistair(a)hotmail.com> wrote in message news:g3t5ej$qs7$1(a)ger.gmane.org...
+/* Support for loading xml files from a Wine Windows drive */ +static int wineXmlMatchCallback (char const * filename) +{ + BSTR sFilename = bstr_from_xmlChar( (xmlChar*)filename); + BSTR sColon = bstr_from_xmlChar( (xmlChar*)":"); + int nRet = 0; + + TRACE("%s\n", debugstr_w(sFilename)); + + /* + * We will deal with loading XML files from the file system + * We only care about files that linux cannot find. + * e.g. C:,D: etc + */ + if(iswalpha(sFilename[0]) && sFilename[1] == sColon[0]) + nRet = 1; + Hi,
The file detection is what is causing this patch not to be accepted. For reference http://bugs.winehq.org/show_bug.cgi?id=11325 - Summary: This script attempts to load a script from disk with a windows path (Z:\blah\rooms\room1.xml), and libxml doesnt understand how to use load this file. During startup, libxml attempts to load its DTD's from the /etc/ directory, (it uses the format file:///etc/xml/DTD.xml), and we dont want to handle these files, but we do want to handle windows paths. What method can I use to detected a windows path verses a unix path? Best Regards Alistair Leslie-Hughes
participants (1)
-
Alistair Leslie-Hughes