![]() |
Suggest a text editor for xml files that supports wildcard find and replace
The title pretty much says it all.
I'm trying to import gpx maps into maemo mapper using a combination of plotting routes on the likes of Gmap Pedometer and Bike Route Toaster and then using GMapToGPX to convert the results into gpx files. I then edit the resulting gpx file to rename element names to more maemo-mapper friendly element names. So <rte> becomes <trk> and <rtept> becomes <trkpt> using a simple find and replace in any text editor. Unwanted <ele>0</ele> nodes are stripped out again using a find and replace. However I'm left with a load of <name> Turn # </name> nodes where # is a number starting with 1 and goes on sequentially. If there's a lot of turns it's painful to delete them manually. Hence my requirement for a text editor that supports wildcard find and replace. |
Re: Suggest a text editor for xml files that supports wildcard find and replace
Sed, and awk, and grep come to mind in a bash script... Of course regular expressions are obligatory.
|
Re: Suggest a text editor for xml files that supports wildcard find and replace
Learning regular expressions is more effort that I'm prepared to put in for this though. It's a bit like using a sledgehammer to open a peanut from my perspective.
Of course you're right in that it would be an ideal tool for what I'm trying to do but the learning curve seems steep and off-putting at the moment for me. |
Re: Suggest a text editor for xml files that supports wildcard find and replace
running on what OS?
|
Re: Suggest a text editor for xml files that supports wildcard find and replace
Quote:
|
Re: Suggest a text editor for xml files that supports wildcard find and replace
for XP, I'd suggest notepad++.
|
Re: Suggest a text editor for xml files that supports wildcard find and replace
Jedit is pretty powerful as well, and is cross-platform. I prefer notepad++ though personally.
|
Re: Suggest a text editor for xml files that supports wildcard find and replace
Not sure as notepad++ could do this (it could using regex, but no regex allowed :)). M$ Word has an option to find wildcards, so if you have that on Win or OS X you could try that if you dont want to learn regex.
|
Re: Suggest a text editor for xml files that supports wildcard find and replace
Quote:
It's looking like I'm gonna have to bite the bullet on the regex if I want to crack this. Unfortunately regex is looking a bit like Mandarin to me at the moment :(. Guess I'll just have to persevere. How hard can it be. |
Re: Suggest a text editor for xml files that supports wildcard find and replace
Quote:
http://i28.tinypic.com/n2kf7m.png Thanks for the help and pointers :). |
All times are GMT. The time now is 15:52. |
vBulletin® Version 3.8.8