I found that I needed libxml2 to work on the Macintosh in Carbon, not just in OS X. The product did not work correctly without making changes to the source code. The problem was how file paths were treated. In a Mac OS X only application, the file paths were POSIX and so it worked correctly with libxml. Within a Carbon application the file paths used the Mac file system (A colon is used as the separator). Libxml internally depends on a POSIX style path.
My solution was to change the path to a Mac style path just before the file path is used when calling file IO functionality. Attached are the file differences that are needed to use Carbon libraries. This is especially need if you are using the XSLT library in conjunction with Libxml.
<<xmlio.h.diff>> <<config-mac.h.diff>> <<xmlio.c.diff>>
Cameron C. Johnson
Software Developer
FileNet Corporation
www.FileNet.com
ccjohnson FileNet com
Phone: (780) 433-3690 ext. 2225 (phone)
Fax: (780) 437-4381 (fax)
CONFIDENTIAL NOTICE: The contents of this message, including any attachments, are confidential and are intended solely for the use of the person or entity to whom the message was addressed. If you are not the intended recipient of this message, please be advised that any dissemination, distribution, or use of the contents of this message is strictly prohibited. If you received this message in error, please notify the sender. Please also permanently delete all copies of the original message and any attached documentation. Thank you.
Attachment:
xmlio.h.diff
Description: xmlio.h.diff
Attachment:
config-mac.h.diff
Description: config-mac.h.diff
Attachment:
xmlio.c.diff
Description: xmlio.c.diff