Script to Manipulate an XML File

Budget $30 - $250 USD
Bids 7
Average Bid $104

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.

Post a Project Like This

Looking to make some money?

  • Set your budget and the time frame
  • Outline your proposal
  • Get paid for your work

Bids on this Project

  • jkritechlabs Profile Picture

    jkritechlabs

    Pune,  India

    A young & diversified team. We have developers from all different areas. We believe in applying common sense and giving transparency toward work.

    PHP, Javascript, XML, and Python

  • gleon99 Profile Picture

    gleon99

    TLV,  Israel

    PHP, C Programming, Java, and XML

  • KU5DsWq68 Profile Picture

    KU5DsWq68

    Adana,  Turkey

    PHP, C Programming, Java, and Javascript

  • RhynoProgramming Profile Picture

    RhynoProgramming

    Chesterfield,  United States

    I am a talented Python Programmer that understands the concepts of OOP and Software Development. I have vast experience in the following areas: *Web scraping *XML/HTML Parsing *Text Manipulation *System information *Email interaction *Skype4Py *Sockets *FTP *Encryption *GUI (wxpython)

    PHP, Perl, ASP, and C Programming

  • websoft2009 Profile Picture

    websoft2009

    Yalida,  China

    I have ten years experience in web programming. If you are looking for a developer who is professional and honest, Please don't hesitate to contact me. Thank you. My Qualifications, Experience and Skills: - University degree in computer science. - Ten years' relevant professional experience in software development. - Very good knowledge of PHP programming language and related web technologies (HTML, CSS, Javascript, AJAX). - Experience in development and maintenance of relational databases (MySQL). - Practical knowledge of code versioning tools (SVN/GIT).

    PHP, C Programming, Javascript, and .NET

  • gangabass Profile Picture

    gangabass

    Irkutsk,  Russian Federation

    SKILLS * Object Oriented Programming (Perl/Python/C#/VB/PHP) * Web Scraping - Scrapy, Mechanize, Selenium, Curl, Python, Java, Perl * Crawling , Data Mining, Data Extraction, Image Scraping * Automatic Form Submission I can scrap any data from any website. Captchas, Ajax, Javascript or any other technology is no problem. I'm programmer with 15+ years of experience. Most of my work is done in Perl but I know PHP, Python, C#, C++, Javascript, Visual Basic. Also I have experience working with MySQL, PostgreSQL, MS SQL and Access. I have completed several hundreds of web and desktop automation projects (data scraping and processing).

    Perl, ASP, XML, and Python