Re: Relative paths in C++ on Macintosh OS X

2005-03-18 Thread James Berry
Id=//../../../configuration.xml Note the extra "/"'s in front of the string that I passed in. Thanks for your help. Steve -Original Message- From: James Berry [mailto:[EMAIL PROTECTED] Sent: Wed 3/16/05 10:07 AM To: xerces-c-dev@xml.apache.org Cc: Smith, Steven J (PNNL

Re: Relative paths in C++ on Macintosh OS X

2005-03-18 Thread Steve Smith
a( true ); >>>>>> mParser->setCreateCommentNodes( false ); // No comment nodes >>>>>> mParser->setIncludeIgnorableWhitespace( false ); // No text nodes >>>>>> >>>>>> mErrHandler.reset( (xercesc::ErrorHandler*)

Re: Relative paths in C++ on Macintosh OS X

2005-03-17 Thread James Berry
ld not be opened. Id=//../../../configuration.xml Note the extra "/"'s in front of the string that I passed in. Thanks for your help. Steve -Original Message----- From: James Berry [mailto:[EMAIL PROTECTED] Sent: Wed 3/16/05 10:07 AM To: xerces-c-dev@xml.apache.org Cc: Smith, Stev

Re: Relative paths in C++ on Macintosh OS X

2005-03-17 Thread Steve Smith
Title: Re: Relative paths in C++ on Macintosh OS X It turns out that getcwd() consistently returns "/" everywhere in the program. However, C++ file output functions are also writing consistently using relative paths, so its using something else to get the working directory. I&#

Re: Relative paths in C++ on Macintosh OS X

2005-03-16 Thread James Berry
ECTED] Sent: Wed 3/16/05 10:07 AM To: xerces-c-dev@xml.apache.org Cc: Smith, Steven J (PNNL/JGCRI) Subject: Re: Relative paths in C++ on Macintosh OS X Steve, I don't know of a problem in this area. I've used relative paths successfully. But your setup may be somewhat different. Can you provi

Re: Relative paths in C++ on Macintosh OS X

2005-03-16 Thread Steve Smith
ration.xml in the root directory. If its >>not there >>then I get an exception message of >> >>The primary document entity could not be opened. >> Id=//../../../configuration.xml >> >>Note the extra "/"'s in front of the string that I pas

Re: Relative paths in C++ on Macintosh OS X

2005-03-16 Thread James Berry
erces-c-dev@xml.apache.org Cc: Smith, Steven J (PNNL/JGCRI) Subject: Re: Relative paths in C++ on Macintosh OS X Steve, I don't know of a problem in this area. I've used relative paths successfully. But your setup may be somewhat different. Can you provide more information about the contex

RE: Relative paths in C++ on Macintosh OS X

2005-03-16 Thread Smith, Steven J (PNNL/JGCRI)
at I passed in. Thanks for your help. Steve -Original Message- From: James Berry [mailto:[EMAIL PROTECTED] Sent: Wed 3/16/05 10:07 AM To: xerces-c-dev@xml.apache.org Cc: Smith, Steven J (PNNL/JGCRI) Subject: Re: Relative paths in C++ on Macintosh OS X Steve, I don't know

Re: Relative paths in C++ on Macintosh OS X

2005-03-16 Thread James Berry
Steve, I don't know of a problem in this area. I've used relative paths successfully. But your setup may be somewhat different. Can you provide more information about the context in which you're seeing this issue? Build environment? Compiler? What API you're passing the relative path to? Can y

Relative paths in C++ on Macintosh OS X

2005-03-16 Thread Steve Smith
I'm having difficulty getting the Xerces-C++ parser to use relative paths on Mac OS X. Using absolute paths works fine. But when I try to pass the parser a path such as ../../../configuration.xml I get an error: The primary document entity could not be opened. Id=//../../../configuration