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

Boris Kolpackov boris at codesynthesis.com
Sun Apr 28 09:29:28 EDT 2013


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