Skip to main content

Corrupt GML file error

 

Hello everyone,

 

I am creating an FME script, the input data are DGN files and the output data are GML files. 

 

I am using the "XMLValidator" transformer which contains a template file used as an example to model and structure the output GML file. 

 

Here's my problem: I need to convert several DGN plans into GML. 

 

1) : When I input the DGN plans created with the Microstation software, the 'XMLValidator' indicates no errors and the output GML file is correct and matches my expectations. 

 

2) : On the other hand, when I input DGN plans created with TopoCalc surveying software, the 'XMLValidator' transformer indicates several errors: (see photo)

 

- no declaration found for the 'featureMember'" element

 

- prefix 'gml' can not be resolved to namespace URI".

 

Error in QGIS when opening the GML file:

".gml is not a valid or recognised data source."

 

The GML file is therefore corrupted and cannot be opened... 

 

I can't solve this problem.... I'm interested in any information that might help me solve my problem.

 

Thank you in advance and have a nice day!

 

image

Hello @dozhwal​, thanks for posting! Sorry to hear you're having issues with the DGN to GML conversion. If I am understanding this correctly, Microstation can consume the FME-created GML, but QGIS and TopoCalc is flagging it as invalid? When you mention template file, do you mean application schema?

Moving forward, I think it would be helpful to see how the GML is being created in FME Form. If you're able to share any of the following, that would be great:

  • A copy of the workspace used to create the GML dataset
  • A sample input file
  • A expected output (to see desired structure, elements, etc)

Happy to help, Kailin.


Hello @dozhwal​, thanks for posting! Sorry to hear you're having issues with the DGN to GML conversion. If I am understanding this correctly, Microstation can consume the FME-created GML, but QGIS and TopoCalc is flagging it as invalid? When you mention template file, do you mean application schema?

Moving forward, I think it would be helpful to see how the GML is being created in FME Form. If you're able to share any of the following, that would be great:

  • A copy of the workspace used to create the GML dataset
  • A sample input file
  • A expected output (to see desired structure, elements, etc)

Happy to help, Kailin.

Hello @kailinatsafe, Thank you for your reply! 

Do you have an e-mail address so that I can send you the data ? 

Thanks in advance


Hello @kailinatsafe, Thank you for your reply! 

Do you have an e-mail address so that I can send you the data ? 

Thanks in advance

Hey @dozhwal​, lets follow up via support case! Chat soon, Kailin.


Reply