I'm working on a module where I want to periodically grab XML data from another website and save it to my store database. I'm struggling with my options for parsing the XML, though. I'm currently using MvCALL to save the raw XML to a variable which I thought I could convert to an array with xml_parse_var. That doesn't seem to be working the way I expected, though. Is there any documentation for the xml_parse_var function?
I previously worked around this problem by using PHP to grab the file and convert it to JSON, which Miva handles very easily. Is there currently any way to similarly convert XML to JSON within Miva, or simply parse the XML as an array like with miva_json_decode?
Thanks,
Josh
I previously worked around this problem by using PHP to grab the file and convert it to JSON, which Miva handles very easily. Is there currently any way to similarly convert XML to JSON within Miva, or simply parse the XML as an array like with miva_json_decode?
Thanks,
Josh
Comment