Hello there,
I am very sorry if my question doesn't make sense as this is my first question, however i've been going through the questions posted for a while now.
right i have a XML structure of
<category>
<id>123456</id>
<name>Sales</name>
<categories>
<category>
<id>2345</id>
<name>UK House prices</name>
</category>
<category>
<id>3456</id>
<name>Property Market Surveys</name>
</category>
</categories>
I'd want a function to parse through the above xml and generate an array idealy to look something like this
array(
"123456" =>
array(
"id" => "2345",
"name" => "UK House prces",
),
array(
"id" => "3456",
"name" => "Property Market Surveys",
)
);
i must then be able to extract data of the array and insert it into a table with parent child relation.
Please let me know if you need more info to make this question complete.
Thanks a lot for your time.
Regards.