[xsd-users] File Closing

Boris Kolpackov boris at codesynthesis.com
Tue Jul 24 02:39:09 EDT 2007


Hi Ryan,

Prather, Ryan C SSgt DMSG/WMTS <Ryan.Prather at afspc.af.mil> writes:

> Right now yes, Solaris is our primary development environment because we
> know that is the platform we are deploying too.  Initally I thought that
> it was a syntax error as well, but I looked and didn't see anything that
> was wrong.  I haven't changed the .xml or schema files recently and they
> were working fine.  We made the changes that you suggested to allow
> threading and that is what changed the error from "Type
> XMLPlatformException, message: Could not close the file" to the "Invalid
> document structure."

Have you changed anything else in the way you call parsing functions
besides calling Initialize/Terminate and passing the dont_initialize
flag? Maybe you used ifstream instead of just passing the file name,
as I suggested in one of my previous emails?

> Do I need to make any changes to the .hpp files in addition to the .cpp
> files?

No, the changes are only to BinFileOuputStream.cpp and
BinFileInputStream.cpp. I extracted this changes from the Xerces-C++
SVN repository, revision 450540, as suggested in the bug report.


hth,
-boris




More information about the xsd-users mailing list