mtorbin Posted February 12, 2009 Share Posted February 12, 2009 I have an XML Feed which contains a bunch of assets, each having a ton of variables. I just built a class that can return this data but I'm curious what the best way to return this data is. Should I: 1) Write it as a CSV to an external file? 2) Pass it over as a multi-dimensional array (i.e. 2300 or so assets each with 20 or so variables) What suggestions do you guys have? Quote Link to comment https://forums.phpfreaks.com/topic/144995-best-way-to-handle-parsing-xml-feed/ Share on other sites More sharing options...
Mchl Posted February 12, 2009 Share Posted February 12, 2009 You should use the format, that's easiest to use in your application. Probably an array. Quote Link to comment https://forums.phpfreaks.com/topic/144995-best-way-to-handle-parsing-xml-feed/#findComment-760830 Share on other sites More sharing options...
Daniel0 Posted February 13, 2009 Share Posted February 13, 2009 2) Pass it over as a multi-dimensional array (i.e. 2300 or so assets each with 20 or so variables) Watch out for memory when using a such large data set. You might want to implement some sort of lazy loading. Quote Link to comment https://forums.phpfreaks.com/topic/144995-best-way-to-handle-parsing-xml-feed/#findComment-761289 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.