Convert CSV To Custom XML, Perhaps With Python

I have a CSV file that has to be parsed and exported to a custom XML format with several conditional rules. Attached is a sample of the CSV.

Some custom XML rules include:

- if "Bad Landing" column is 1, export <BAD-LANDING>a</BAD-LANDING>

- if "Bad Landing" column is 2, export <BAD-LANDING>aa</BAD-LANDING>

- if GPS exists, export as a top level element

- if Boulder Name exists, export as a top level element

- if Consensus Grade is V0, V1, or V2, export using the tag <GRADE-EASY>

- if Consensus Grade is V3, V4, or V5, export using the tag <GRADE-MEDIUM>

- export a dummy element in each <TICKBOX>

There are about 15 of these simple rules. The script should be written in something I can easily modify and run locally, perhaps Python.

Compétences : PHP, Python, XML

en voir plus : python csv to xml script, how to convert a csv file to xml format, convert csv to xml command line, csv2xml, python xml, how to convert csv file to xml, convert csv file to xml file, convert csv to dbf, convert csv to xml online, convert csv apple plist xml, python convert csv xml, php code convert csv xml, terminal xml convert csv, source code convert csv xml, linux xml convert csv, convert csv xml cocoa, convert csv xml macintosh, freelancer convert csv xml, convert csv xml, code convert csv xml

Concernant l'employeur :
( 14 commentaires ) Markham, Canada

Nº du projet : #16183003

Décerné à:


I prefer PHP because my experience with Python is tiny. Could you give me sample of your custom XML?

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(69 Commentaires)

9 freelance font une offre moyenne de $34 pour ce travail


Hi there, Quick and easy. I can have this script written in PHP. I have a 99% project completion rate and a 4.99 reputation (out of 5.0 from over a thousand projects. Thanks. Regards, Rajesh Soni.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(961 Commentaires)
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(154 Commentaires)
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(31 Commentaires)

Hello dear, I hope this proposal find you well, I saw your job posting online, I would like to request you please have a look into my previous works. I am a full-time freelancer with over 5 years of vast experience i Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(21 Commentaires)

I am well equip to this kind of task, can handle it pretty well. I already done related to this job before. Let me know the best of your time so we can discuss further based on your requirements.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(24 Commentaires)

What about php. I can do this easily in php but not python. Can we discuss further and proceed. I can comment each line so it will be easy for you to edit.. Thank you - JOHN

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(24 Commentaires)

hello, its a simple task, i will deliver the xml file in a couple of hours, i am available right now, send me a message to discuss this.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)

I have delivered many similar data processing tasks over the years, converting data to and from CSV. I'd be happy to write a Python script that would be easy for you to maintain and expand on.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)