[xsd-users] Serializing and loading a file throws on windows

Olivier Tournaire olitour at gmail.com
Fri Oct 25 03:32:49 EDT 2013


Hi,

It turns out that it was not a problem with "file:///" or whatever. On
Windows, simply closing the fstream before trying to read drops the
exception.

Regards,

Olivier


2013/4/30 Olivier Tournaire <olitour at gmail.com>

> Thanks,
>
> Will have a look at it and let you know if it works.
>
> Regards,
>
> Olivier
>
>
> 2013/4/28 Boris Kolpackov <boris at codesynthesis.com>
>
>> Hi Olivier,
>>
>> Olivier Tournaire <olitour at gmail.com> writes:
>>
>> > > Exception caught: instance document parsing failed --> :0:0 error:
>> unable
>> > > to open primary document entity
>> > >
>> 'F:/work/dev/citygml2-0-0/CityGML_2.0.0/Examples/Building_LOD0-4/Building_and_garage_LOD2-EPSG25832_copy_testing.gml'
>>
>> The first argument to the parsing function is a URI. On Unix, this doesn't
>> cause any problems since paths don't normally contain colons. On Windows,
>> however, an absolute path contains the drive prefix which makes it an
>> invalid URI. To fix this, add "file:///" to the paths that you pass to
>> parsing functions:
>>
>>
>> file:///F:/work/dev/citygml2-0-0/CityGML_2.0.0/Examples/Building_LOD0-4/Building_and_garage_LOD2-EPSG25832_copy_testing.gml
>>
>> Boris
>>
>
>


More information about the xsd-users mailing list