On 7/31/03 2:47 PM, "[EMAIL PROTECTED]" <[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! Hi Elliot, If you're already starting out with a unix pathname (such as you specify on the Mac OS X command line) then you can just feed that on into Xerces, just as DOMPrint does. You should in fact be able to run the DOMPrint application and specify a file path from the command line. Does that work for you? The utilities you mention above are used internally by Xerces to convert back and forth from paths to FSSpecs and FSRefs. They may also be useful within programs that use Xerces, in order to convert between those forms. James --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
