I need a very simple script that estract data from an xml file with SimpleXML library
The xml file has this structure below and I need to have the code, cat, name, desc, price values stored in variables for each product.
You will store the attributes in an array with the attribute name as key
I will store each product data in a database after extracting so the script should simply iterate each product and create variables with data extracted, I dont need the database script, only the xml data in php variables.
<product code="111">
<cat>category</cat>
<name>product name</name>
<desc>description</desc>
<attr><attr name="Color">white</attr><attr nome="Size">S,M,L,XL</attr>
<price>123</price>
</product>
<product code="222">
<cat>category2</cat>
<name>product name2</name>
<desc>description2</desc>
<attr><attr name="Color">black</attr><attr nome="Size">S,M,L,XL</attr>
<price>123</price>
</product>
I have read your project description, i understand what you want, and i would like to offer you my services. I have strong knowledge of PHP including SimpleXML, so i can easily prepare the script for you in less than an hour.
hi,
you project is very easy,you need to a iterate the array having product information which is created from xml file..
award me this project will finish in time,with proper coding
thanks
I can do this immediately for you! Have used SimpleXML before and know how to load and extract data. I just would like to confirm that all I would need to do is extract data and store it in an array as mentioned.
Cheers Paul (SharpCode Technical Lead)
Hi i am happy to code for you if you want me to do so.
As your requirement say it is as easy as one can imagine. I will devlop the required library for you.
We can discuss if you preffer to code in your favourable standards or else it will be pretty clean.
My bid is 10$.