GPS POI Home POI FilesPOI ToolsPOI MapsGPS ForumSupport
  GPS Data Team
Your local business listing specialists

Home > Forums > GPS POI Tools > Remove <cmt> xxxxx </cmt>

Post new GPS POI data or GPS devices related topic in GPS POI Tools forum   Reply to topic Remove <cmt> xxxxx </cmt>
 



gary5

GPS: Garmin Nuvi 3470







Post Remove <cmt> xxxxx </cmt>     
Reply with quote

I'm a newly registered user. Converted a couple of large gpi files to gpx, but they give an error message in Basecamp. They load ok if I remove the <cmt> tag info from a small sample. How can I remove about 3,500 of those tags in the file?
View user's profile





Mark

GDT






Post Re: Remove <cmt> xxxxx </cmt>     
Reply with quote

Hi gary5,

It would be much easier to help if you provided a small sample here.

Regards
View user's profile Visit poster's website





gary5

GPS: Garmin Nuvi 3470







Post Re: Remove <cmt> xxxxx </cmt>     
Reply with quote

<wpt lon="121.3802753" lat="-29.4049994"><name>268-Morapoi Station</name><cmt>Morapoi Station</cmt></wpt>
<wpt lon="121.4469419" lat="-28.8788883"><name>272-Malcolm Dam</name><cmt>Malcolm Dam</cmt></wpt>
<wpt lon="121.3330531" lat="-28.9144438"><name>273-Gwalia Museum</name><cmt>Gwalia Museum</cmt></wpt>

I found a solution. Open the file in Notepad++. Use search & replace all with Regular Expression as follows
(?s-i)<cmt>.+?</cmt>

Thanks for the quick reply. Could it have been done with any of the edit tools here?
View user's profile





Mark

GDT






Post Re: Remove <cmt> xxxxx </cmt>     
Reply with quote

Hi gary5,

Well done. I would also use any text editor to replace:

- all </name><cmt> to a dash or comma
- all </cmt> to </name>

That would keep any additional info, if required.

Regards
View user's profile Visit poster's website





Your Name

Guest






Post Your comments     
Reply with quote

Add your comment here:

 




Display posts from previous:   
Post new GPS POI data or GPS devices related topic in GPS POI Tools forum Reply to topic Remove <cmt> xxxxx </cmt>
Home > GPS Forum > GPS POI Tools > Discussion

Page 1 of 1




Jump to:  

 






Permalink: Remove <cmt> xxxxx </cmt> | GPS POI Tools forum