[xsd-users] parsing file with complete path
Schmilinsky, Remsy
Remsy.Schmilinsky at ccra-adrc.gc.ca
Thu Oct 26 13:51:09 EDT 2006
I forgot to mention that I am using cygwin, I haven't tried on linux or mingw. I'll try on these platforms...
Remsy
-----Original Message-----
From: xsd-users-bounces at codesynthesis.com
[mailto:xsd-users-bounces at codesynthesis.com]
Sent: October 26, 2006 1:28 PM
To: xsd-users at codesynthesis.com
Subject: [xsd-users] parsing file with complete path
Hi. I have a function the includes the following line:
std::auto_ptr<query::queries> q(query::queries_(dataFile.c_str()));
where dataFile is the file to be parsed
it works fine if dataFile is in the same location of the compiled function, however, if dataFile is a path like this ./examples/query.xml, the parsing fails:
Debugging LibraryUtil::extractQuery, calling auto_ptr on dataFile: ./examples/query.xml
instance document parsing failed
so, it doesn't like absolute paths.
is this a known bug? any workaround? Maybe something wrong with the slash...
thanks,
remsy
More information about the xsd-users
mailing list