XML conversion to 2d array in PHP

W Toku Opublikowano Sep 22, 2014 Płatność przy odbiorze
W Toku Płatność przy odbiorze

I need to convert generic XML data to a 2d array using the same rules that Excel uses when pulling in xml data with no XSL file.

The code needs to be a class in PHP.

The output should be a numeric indexed array (0-n) with each entry being an associative array indexed by the column names (I'm open to other suggestions on this if it makes the class simpler).

I've attached an example xml file and also the CSV equivalent, I'll redact some data in another larger file and upload this later.

I've uploaded an example CSV and XML file, not sure why they didn't get attached the first time, sorry!

As I say these are purely examples, the class needs to utilise the same rules as Excel when opening XML files as they could contain any column names and data (the naming must adhere to the Excel rules).

PHP XML

Numer ID Projektu: #6489162

O projekcie

24 ofert Zdalny projekt Aktywny Sep 22, 2014

Przyznany użytkownikowi:

arusdevelopers

Dear Sir, I have 13 years of experience working in PHP/Mysql and available 17 hours a day. I have completed 100\\\\\\\'s of websites so far. I would like to have long term business relation. Quality of work is guarante Więcej

£65 GBP w ciągu 61 dni
(47 ocen)
5.9

24 freelancerów złożyło ofertę za £144 w tym projekcie

gopalvora

Hi I have gone through the details of your project and we find it well within our capabilities. I offer a wide range of services, including Web design, PHP/MySQL web application development, Open sources like Joo Więcej

£216 GBP w ciągu 10 dni
(488 Oceny)
8.2
sismaster

Hii Sir, You already got many option but I would like to say we can do much batter. Also we can be a part of your as a technical team in future, I am very interested in this job and willing to work with you. Więcej

£66 GBP w ciągu 1 dnia
(510 Oceny)
7.7
babysoftS

Hi, I am experienced web developer and I understand your requirement. I am proficient in PHP5, CSS3, HTML5, XML etc. I am looking forward to help you. thanks Vibhor

£189 GBP w ciągu 7 dni
(135 Oceny)
7.8
letshappy

hello, i read your project and i know i can do this task easily i am more tyhen 4 year experience in this field i am readt to start now thanks

£168 GBP w ciągu 3 dni
(136 Oceny)
6.9
sunsoftpro

Hi Employer, I have read your description and been interested in your project. May you share me your sample XML and CSV files ? It seems to be that you forgot to attach the files. I'm ready to discuss and start to wo Więcej

£180 GBP w ciągu 3 dni
(113 Oceny)
6.8
sukum

Hi, I am a PHP programmer and have experience working with different xml libraries in PHP. I can create the PHP class to convert the xml file to a 2 dimensional array as per your requirement. Regards, Sukum

£100 GBP w ciągu 3 dni
(68 Oceny)
6.9
florinbacu

A proposal has not yet been provided

£111 GBP w ciągu 15 dni
(27 Oceny)
6.0
mladenadrian

A proposal has not yet been provided

£150 GBP w ciągu 3 dni
(11 Oceny)
4.8
lucidasys

Hello, How are you ? I would like to assist you on your project mentioned. Though I am new to freelancers i have got pretty good experience with various PHP projects. Can you please share the example xml file, s Więcej

£166 GBP w ciągu 4 dni
(2 Oceny)
1.0
kolsoftware

A proposal has not yet been provided

£66 GBP w ciągu 3 dni
(0 Oceny)
0.0
gerardins

I'm a web Developer. i will be glad to help you realize that project. Your satisfaction is my priority. I usually use XML in my jobs.

£261 GBP w ciągu 1 dnia
(0 Oceny)
0.0
phaneendrak5757

A proposal has not yet been provided

£144 GBP w ciągu 2 dni
(0 Oceny)
0.0