Skip to main content
Question

Error while reading a XML-file

  • December 11, 2020
  • 1 reply
  • 87 views

jpdenboer
Contributor
Forum|alt.badge.img+2

When i am trying to read the XML-file "bomen-elburg_short" I get this error: XML Parser error: 'Error in input dataset:'bomen-elburg_short.xml' line:23 column:46 message:prefix 'gml' can not be resolved to namespace URI'

Whats going wrong, and how can i solve this?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

rahulsharma
Safer
Forum|alt.badge.img+10
  • Safer
  • 359 replies
  • December 12, 2020

Hi @jpdenboer​ 

When opening the file in Notepad ++ (with XML Tools), I get the following error 

error says:

XML Parsing error at line 46:

Namespace prefix gml on coordinates is not defined

The XML is not XML Namespace valid.

Line 46 looks like:

<GEOMETRIE><gml:Point srsName="EPSG:28992"><gml:coordinates>184839.23,494868.87</gml:coordinates></gml:Point></GEOMETRIE>

The gml prefix was never bound to an xml namespace. 

Is this file a GML file? 

May be try adding xmlns:gml="http://www.opengis.net/gml" to ROOT