Sean's patch looks good to me. Basically, it fixes loadXML which parses an
XML document passed as a string. Originally, UTF-16 was set as the encoding
which caused Xerces to look for a byte order mark that would not be present
in a string (but would in a file). Setting UTF-16LE explicitly sets the
byte order.
There are other issues however:
xml4com.h and xml4com_i.c are generated files (from xml4com.idl) and should
not be in the CVS.
xml4com.idl attempts to set the version of the type library to 1.5.2 when
only major.minor format is allowed. Will cause build failure.
http://msdn.microsoft.com/library/en-us/midl/mi-laref_1df2.asp?frame=true
Attached patch file.
Will have to review changes of CLSID's to see if they conflict with earlier
versions of Xerces-COM.
IXMLDOMDocument.load() does not absolutize relative paths before passing to
Xerces-C. I thought that I had addressed this earlier, if not I know I have
code at work that does it. load would also suffer from the same problem
with BSTR's by reference mentioned last week. Will prepare patch tomorrow.
Will check the BSTR ByRef patch from last week at the same time.
xml4com.dif
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]