Arbupending 0 Posted July 23, 2019 Report Share Posted July 23, 2019 I want to remove all the timestamp tags from the "My Places" file that Google Earth provides. This file is an xml file and is on my hard drive. The stamps look like "<gx:TimeStamp><when>2014-06-08T00:12:24Z</when></gx:TimeStamp>".There are 4,000 such stamps, so doing it one by one is not an option. I can't see how I would do a search and replace on the file because that would not remove the data in the middle. So it seems I need to use XML Dom. I've been reading through the tutorials on W3Schools. Somehow I need to open the My Places file with the XMLHttpRequest object. How do I do that? Thanks. Quote Link to post Share on other sites
Funce 42 Posted July 23, 2019 Report Share Posted July 23, 2019 Why would you need to remove the timestamps? You should be able to do this with a simple find and replace using a regular expression. ^<gx:TimeStamp>.+<\/gx:TimeStamp>$ The above should filter all the lines that match <gx:TimeStamp> blah blah </gx:TimeStamp> Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.