random1 Posted December 13, 2012 Share Posted December 13, 2012 Hey All, I am using a web service and am getting the response formatted like: http://pastebin.com/raw.php?i=AjDXXf66 e.g. [[["test","test","",""]],[["noun",["test","essai","épreuve","examen","contrôle","analyse","interrogation","épreuve pratique","épreuve de force"],[["test",["test"],,0.23752081],["essai",["test","trial","testing","essay","assay","try"],,0.12913783],["épreuve",["test","proof","trial","examination","print","crucible"],,0.028814545],["examen",["review","examination","test","investigation","inspection","testing"],,0.010767208] ... ... ... To my knowledge it is some kind of expression of a multidimentional array however I've never seen a response like this. Is there a way I can convert this format to clean XML? Quote Link to comment https://forums.phpfreaks.com/topic/271937-converting-to-xml/ Share on other sites More sharing options...
requinix Posted December 13, 2012 Share Posted December 13, 2012 Do you actually want XML? Or just to get it into PHP-readable form? Quote Link to comment https://forums.phpfreaks.com/topic/271937-converting-to-xml/#findComment-1399077 Share on other sites More sharing options...
random1 Posted December 14, 2012 Author Share Posted December 14, 2012 preferably XML format but if the above is simply a JSON formatted response I'll check out using json_decode. Quote Link to comment https://forums.phpfreaks.com/topic/271937-converting-to-xml/#findComment-1399311 Share on other sites More sharing options...
requinix Posted December 14, 2012 Share Posted December 14, 2012 Actually that may not be valid JSON... There's empty array items in it. Where is this data coming from? Quote Link to comment https://forums.phpfreaks.com/topic/271937-converting-to-xml/#findComment-1399317 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.