[xsd-users] parsing file with complete path

Schmilinsky, Remsy Remsy.Schmilinsky at ccra-adrc.gc.ca
Thu Oct 26 13:28:11 EDT 2006


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