Skip to main content
Question

Error while reading a XML-file

  • December 11, 2020
  • 1 reply
  • 80 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?

1 reply

rahulsharma
Safer
Forum|alt.badge.img+10
  • Safer
  • 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

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings