Take the following:
Code XML:<a> <b /> <c> <c1>aha</c1> <c1-1>dsfg</c1-1> <c1-2>sdfg</c1-2> <c2>fsdg</c2> </c> </a>
I've been using SimpleXMLElement() to easily access the data in an array LIKE setup. The problem is it is still an object and I have to loop through an assign values to an array myself, and it become problematic for instances such as <c1>.
Any ideas on how I can can easily and simply convert this to an array, no matter the depth of the XLS tree?




Reply With Quote
Bookmarks