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:
Now obviously doing this doesn't work...
PHP Code:
$file = $xml->item->$db['field_file'];
Any idea on the best way for doing this....
