XML Parser Error

Map Plus helps, usage, issues, bug report, downloads...

XML Parser Error

Postby Vitor » 2018-01-11 17:26

I'm having some problems to open KML filés. Just show the message:

"XML Parser Error.(Namespace prefixo xis for schemalLocation on Document is not define).

I'v tried to open diferente files saved by diferent ways and the result is the same.

Could you help me to fix?
User avatar
Vitor
★★
 
Posts: 1
Joined: 2018-01-11 17:08

Re: XML Parser Error

Postby Zax » 2018-01-12 4:36

Vitor wrote:I'm having some problems to open KML filés. Just show the message:

"XML Parser Error.(Namespace prefixo xis for schemalLocation on Document is not define).

I'v tried to open diferente files saved by diferent ways and the result is the same.

Could you help me to fix?


This is because the XML is not valid enough to pass the app's format checking.
The KML content is using the xsi namespace, but the KML does not declare it in the KML header before use.

Many software though it is not a big issue and would omit that error, but, our app is more strict and requires all namespace prefixes used in the file content should be pre-declared.

There are 2 solutions for that, the simplest way is to turn on the "Ignore Namespace Error" switch while importing.

Or you can try to edit the KML content by adding the xsi namespace declaration to starting element of <kml>, as shown bellow:
Code: [Select all]
<kml ...... xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Map Source XML
Zax Zeng
Duwei Technology
User avatar
Zax
★★★★★
 
Posts: 1172
Joined: 2011-07-27 0:54


Return to Map Plus - Forums

cron