Script to Manipulate an XML File

I need a script that will download an XML file from a specific URL, compare some of the elements to elements in another (local) XML file, and then move elements from one file over to another.

Both files are KML files that include a list of Placemarks. The first file is a KML history of Foursquare checkins. The second (local) file is a KML file generated by Google Earth, which also includes a LineString placemark that connects all the other Placemarks.

I want to run this script periodically via a Cron to move over the latest Foursquare checkins to the locally-hosted Google Earth KML file and then append the coordinates from each checkin to an existing LineString in the Google Earth KML file, thereby connecting each checkin with the previous.

This script would need to check the published date on the previously inserted Placemarks of the local file to ensure that duplicate placemarks/coordinates are not inserted.

The script also needs to insert all new placemarks after the LineString Placemark called "Path" (i.e., the Path placemark should always be at the top), with the remaining placemarks ordered in reverse chronological order (newest to oldest).

The script should also search for the string "Current Location" in all Placemark descriptions of the local file, remove that string from the description (leaving the remainder of the description intact), and then insert that string into the beginning of the newest Placemark (i.e., the one that comes right after the "Path" placemark).

Finally, since the Foursquare KML doesn't properly encapsulate the content of the Description element in "<![CDATA[ ]]", so this script should also make sure that the Description content always starts with "<![CDATA[" and ends with "]]".

I have attached an example Foursquare KML and Google Earth KML (which includes the "Path" LineString). I'm looking for the script to be written in either PHP <= v5.3 or Python <= v2.4.

Skills: PHP, Python, XML

See more: order history google, m string, local search script, google order history, python reverse, python download file, download file python, i want google earth, i need google earth, xml script, v5, manipulate , cron script, php kml, php insert xml, python script move files, php file remove, google current location, php url string download, php remove file

About the Employer:
( 0 reviews ) Pelham, Australia

Project ID: #1707839

6 freelancers are bidding on average $116 for this job


I can do this for you. See PM for details.

$50 USD in 2 days
(113 Reviews)

By having experience in XML file handling and merging, we claim to be right fit for this.

$175 USD in 5 days
(4 Reviews)

Hi, I can do the work.

$100 USD in 1 day
(17 Reviews)

I have an abundance of experience with XML and can complete this project easily.

$50 USD in 0 days
(6 Reviews)

Custom software development - <b><i>Removed by Admin</i></b>

$250 USD in 1 day
(0 Reviews)

70$, may be ready in just as few as 2-3 days.

$70 USD in 3 days
(0 Reviews)