problem when importing POI from kml

Started by ysop, June 20, 2011, 22:08:03

0 Members and 1 Guest are viewing this topic.

ysop

I want to import POIs of campsites. The kml file is provided by
//http://www.bordatlas.de/
Locus is reporting a problem and is not importing the POI. The reason is the element "description". I have attached a part of the file. I hope you can solve the problem so that I can use locus and the POIs in my vacation.
Thank you very much for the great app!
  •  

Menion

#1
Hi Ysop,
  on first quick look ... this file is not VALID kml file. It contain HTML data in description tag but this is not allowed in XML file. All these texts have to be in CDATA attribute so it have to look like this

<description>
<![CDATA[
Stellplatz aus dem <a href="http://www.bordatlas.de/">BORDATLAS</a> von Reisemobil International
<p>W&#246;rnitz</p>
<p><a href="http://www.reisemobil-international.de/bordatlas2/stellplatz2.html?id=1874">BORDATLAS 2011 Seite 594</a></p>
]]>
</description>

then it will be valid kml file and there shouldn't be any problem with import. Also if you want to use some special characters in name tag, I suggest also place it into CDATA to prevent some problems
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

ysop

#2
Hi Menion,

thank you for the fast response. I have uploaded the file to //http://www.xmlvalidation.com and no error was reported. Also Google Earth is accepting the file. But nevertheless I will write a progrom to delete the element because the information is not necessary.
  •  

berkley

#3
Why don't you just simply import the kml into google mymaps, open your google mymaps in locus, long click on your desired map and finally click "import" to Locus...?

Just as an option ;)
Search before posting!!!
XDA Orbit, HTC Touch HD, SGS1, SGS2, Nexus S, S4 Active, OnePlus One, Innos D6000
OnePlus X
  •  

Menion

#4
also solution :)

anyway little bit out of topic ... is directly included XHTML(HTML) code in XML tag really valid?? How can I then parse it in application? Really weird ...
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •