View Single Post
Old 07-06-2013, 04:22 PM  
stashnetwork
So Fucking Banned
 
Industry Role:
Join Date: Jun 2012
Posts: 66
XML mapping urgh

So I need to map xml feeds and store the mappings in MYSQL.

Right now I use simplexml to parse the xml feed.

Code:
$xml = simplexml_load_file($feed['xml_feed']);
But the next problem is this, I have fields in the database like field_file, field_thumbnail.

Inside field_file I have:

Code:
clips->clip->flv
Now obviously doing this doesn't work...

PHP Code:
$file $xml->item->$db['field_file']; 
Any idea on the best way for doing this....
stashnetwork is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote