Good day all ! i have a multi-dimensional array. the array was carefully built from my xml structure. here's it :
array (size=1) 'Articles' => array (size=4) '@About' => string 'programming' (length=11) '@compile' => string 'pro' (length=3) 'Article' => array (size=3) 0 => array (size=6) ... 1 => array (size=6) ... 2 => array (size=6) ... '$' => string 'Idiot ! How to programme' (length=24)
where all attribute names are mapped against the '@' sign and node contents against the '$' sign. apparently, here's the xml data from where the above array was obtained :
<?xml version="1.0"?> <Articles About="programming" compile="pro"> Idiot ! How to programme <Article ID="111" Lang= "C++"> Best Language <title HELP="Needed">C++ is my boss</title> <author>Idiotic Me</author> <summary>if you dont like Cpp, your a Moron </summary> </Article> <Article ID="222" Lang="Json"> Or whatever it calls itself <title> Json is a fool <sub> just a test </sub> </title> <author> who cares !</author> <summary> I detest json </summary> </Article> <Article ID="333" Lang="Ruby"> Hottest in town <title> A rival of Cpp</title> <author> intersting to know</author> <summary> a good language i think </summary> </Article> </Articles>
i am finding it painful to convert the above array back into its exact xml form. any good analgesic to relieve me of this pain ?? thanks in advance !