Hey, Basically got a massive XML document, with lots of nodes n attributes values and all that jazz.
I'm wanting to be VERY lazy as I'm awful at XML/PHP and google seems to have failed me on this occasion.
if it possible to grab EVERY element in the XML document and make it a PHP variable?
So if my XML Doc was like maybe...
<wrap>
<sub></sub>
<subsub></subsub>
<sub></sub>
<subsub></subsub>
<sub2></sub2>
<sub3 value=''></sub3>
<sub4 value=''></sub4>
</wrap>
so it would recursively check the document converting it all into php variables no matter what the name of the tags/nodes. so for example they would end up looking like maybe. $wrap; $sub1; $sub[2]; $sub2; $sub3; $sub4; $sub3['value']; $sub4['value'];
so it would have to me smart to delve deep into possibly like 8 children down?
is this possible or will i have to type out like $sub1 = $xml->wrap->sub1; because that's like...over 1k lines of code that i don't want to exist lol.
just incase the xml feed is HERE
thanks for your time :)