actionscript 3 - Loading XML with possible infinite tags -


(I'm doing it in AS3, but I'm sure the answer can be given in psuedocode)

Actually, I have an XML file:

  & lt; Main & gt; & Lt; Event & gt; & Lt; Name & gt; Blown & lt; / Name & gt; & Lt; Event & gt; & Lt; Name & gt; Blah2 & lt; / Name & gt; & Lt; Event & gt; & Lt; Name & gt; Blah3 & lt; / Name & gt; ... & lt; / Event & gt; & Lt; / Event & gt; & Lt; / Event & gt; & Lt; / Home & gt; Yes, to a lesser extent this is a bad design, but the idea I see is that in any event there is the ability to compromise other events and this idea is slightly loop. 

Any thoughts on how to do this?

Use recursion?


Comments