Look at CFURLCreateWithFileSystemPath for which you need a CFStringRef that you can create with CFSTR if it is a constant or CFStringCreateWithCString
and CFStringGetSystemEncoding if not. To convert the CFURL to a FSRef use CFURLGetFSRef. Or just use the char * based functions in the library... They are a lot easier. If you need something small and fast without all the whistles and bells of Xerces you can use the Mac's own libraries, but that is badly documented and not easy to use. Look on the Apple site or your developer documentation for CFXMLTreeCreateWithDataFromURL. Remember to "free" the allocated structures with CFRelease.


The normal posix style functions like open, fopen does handle Unix style pathnames... So you can use those without any problems most of the time.

Robert Sandilands

[EMAIL PROTECTED] wrote:

First of all, I will admit that I am a total newbie to the Mac.  That being
said, does anybody have any examples of loading files with Xerces on Mac OS
X.  I know about XMLCreateFullPathFromFSRef and XMLParsePathToFSRef, but I
am having trouble getting what I want out of them.  I am not terribly
familiar with FSRef's (which is my problem).  For instance, in the DOMPrint
example we get the char* path from the command line argument, but I can't
seem to convert it to a Unix style path to load it.

Any samples or advice would be much appreciated!

Thanks!




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




-- #include http://robert.rsa3.com/disclaimer.html



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to