My xml is like below
<rat>
<to>tt</to>
<from>ggg</from>
<heading>hhhhh</heading>
<body>jjj</body>
</rat>
My AS3 code is
var example:XML = new XML(event.target.data);
_label.text = example[0].rat[0][nodeName];
addChild(_label);
I want to display the data like
to = tt
from = ggg
how can i do that